Spawning Stuff, For Dummies
Posted: Tue Sep 29, 2009 5:50 am
Since Dez already made a tutorial about Water spawning. This is about Circle Boxs Exc.
Circle Spawning
-Create a Box
-In the Oncollide Menu of that box type something like
-That will spawn a balll with forward motion
-By the Way the E.normal means that it will spawn the ball with the velocity of the objest that hit it (In Short it is just forward Motion
Box Spawning
-Create another box
-In the oncollide menu of the Box type something like
-This will spawn a box that is black and is 2 by 1 or something
spawning Pens
- First off you need to have one of the Spawner above first
- in the script of the original Spawner Type the code that will come out to say
-That will Spawn a ball with a tracer attached
Spawning Lasers
-Okay so you can type this into a script menu (oncollide) of a Box or something
-That spawns a Laser that is a cutter.
I am Going to add more later
Circle Spawning
-Create a Box
-In the Oncollide Menu of that box type something like
- Code: Select all
Scene.addcircle({pos := e.pos; Color := [0,0,0,1]; radius := 0.1; vel := e.normal * 50})
-That will spawn a balll with forward motion
-By the Way the E.normal means that it will spawn the ball with the velocity of the objest that hit it (In Short it is just forward Motion
Box Spawning
-Create another box
-In the oncollide menu of the Box type something like
- Code: Select all
Scene.addbox({size := [1,2]; pos := e.pos; color := [0,0,0,1]})
-This will spawn a box that is black and is 2 by 1 or something
spawning Pens
- First off you need to have one of the Spawner above first
- in the script of the original Spawner Type the code that will come out to say
- Code: Select all
Scene.addcircle({pos := e.pos; Color := [0,0,0,1]; radius := 0.1; vel := e.normal * 50}); scene.addpen ({pos := e.pos; color := [0,0,0,1]; size := 0.9})
-That will Spawn a ball with a tracer attached
Spawning Lasers
-Okay so you can type this into a script menu (oncollide) of a Box or something
- Code: Select all
scene.addlaserpen({pos := e.pos; Size := 1; color := [1,1,1,1]; Cutter := true})
-That spawns a Laser that is a cutter.
I am Going to add more later