Script request help!!!
4 posts • Page 1 of 1
Script request help!!!
I am making a game and...
I want a box collide and spawn a ball and that ball will become a killer when it collide.
That's all!!! pls help!!!
I want a box collide and spawn a ball and that ball will become a killer when it collide.
That's all!!! pls help!!!
- tailgater
- Posts: 10
- Joined: Sat Feb 12, 2011 12:01 am
Re: Script request help!!!
Put this in the oncollide of the original circle.
If you want to keep the original circle, make it immortal.
- Code: Select all
scene.addCircle({ pos:=e.pos; radius:=0.5; color:=[0,0,0,0.5]; oncollide:= (e)=>{e.this.killer=true}; density:=2})
If you want to keep the original circle, make it immortal.
-
TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: Script request help!!!
I acually need "will NOT be killer" any way it's working great
TY!!!!!!!!!
btw i love ur avatar
TY!!!!!!!!!
btw i love ur avatar
- tailgater
- Posts: 10
- Joined: Sat Feb 12, 2011 12:01 am
Re: Script request help!!!
Thanks, made it myself in photoshop 6!
Also, if you want to make the original circle delete itself on collision, set the oncollide to
I've found myself doing a lot of scripting like this recently...
Also, if you want to make the original circle delete itself on collision, set the oncollide to
- Code: Select all
scene.addCircle({ pos:=e.pos; radius:=0.5; color:=[0,0,0,0.5]; oncollide:= (e)=>{e.this.killer=true}; density:=2}); e.this.collideset=0; e.this.airfrictionmult=-inf
I've found myself doing a lot of scripting like this recently...
-
TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests