User Tools

Site Tools


hpl2:tutorials:level_editor:tutorial_6

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpl2:tutorials:level_editor:tutorial_6 [2011/10/06 15:42]
khyrpa
hpl2:tutorials:level_editor:tutorial_6 [2011/10/06 15:57] (current)
khyrpa [Billboards]
Line 47: Line 47:
  
  
-To create ​better looking ​billboards, not all of them should be of the same color, so create another point light and connect the billboards that you think need different colors to other point lights. For simplicitys sake I keep them connected to only 2 point lights. (Colors changed so you can see better what I did)+To create ​nice billboards, not all of them should be of the same color, so create another point light and connect the billboards that you think need different colors to other point lights ​(here the billboards on the edges were picked). For simplicitys sake I keep them connected to only 2 point lights, but if you think you need more variation go for more. (Colors changed so you can see better what I did)
  
  
Line 105: Line 105:
 AddTimer("​start",​ 0, "​FlickerTimer"​);​ //Starts the loop AddTimer("​start",​ 0, "​FlickerTimer"​);​ //Starts the loop
 SetLocalVarInt("​EventInt",​ 1); //sets the timer to loop case 1 SetLocalVarInt("​EventInt",​ 1); //sets the timer to loop case 1
-//​Spawn ​dust to bb_particle_ areas+//​Spawn ​particles ​to bb_particle_+i areas and fog_particle_+i ​areas
 for(int i=0;​i<​3;​i++) CreateParticleSystemAtEntityExt("​blue_particles",​ "​ps_light_dust_large.ps",​ "​bb_particle_"​+i,​ true, 0.6f, 0.75f, 1.0f, 1, true, 1, 2, 8, 11); for(int i=0;​i<​3;​i++) CreateParticleSystemAtEntityExt("​blue_particles",​ "​ps_light_dust_large.ps",​ "​bb_particle_"​+i,​ true, 0.6f, 0.75f, 1.0f, 1, true, 1, 2, 8, 11);
-//Spawn fog to fog_particle_ areas// ​    for(int i=0;​i<​3;​i++) CreateParticleSystemAtEntityExt("​blue_fog_particles",​ "​ps_area_fog.ps",​ "​fog_particle_"​+i,​ true, 0.6f, 0.75f, 1.0f, 0.8f, true, 1, 2, 8, 11);+for(int i=0;​i<​3;​i++) CreateParticleSystemAtEntityExt("​blue_fog_particles",​ "​ps_area_fog.ps",​ "​fog_particle_"​+i,​ true, 0.6f, 0.75f, 1.0f, 0.8f, true, 1, 2, 8, 11);
 } }
    
Line 164: Line 164:
 } }
 </​code>​ </​code>​
 +
 +
 +So in the end that loop could control all the billboards and lights needed in a map. The flickering effect might be very small buff to levels looks for the headache it could cause, but keeping billboards connected into lights makes changing colors **MILLION ** times more pleasant. It can also be used to for example: cool scares and changing light coming from outside from day to night
  
hpl2/tutorials/level_editor/tutorial_6.1317915743.txt.gz ยท Last modified: 2011/10/06 15:42 by khyrpa