SOLVED - Laser that changes objects collision?
6 posts • Page 1 of 1
SOLVED - Laser that changes objects collision?
What is the code to add to a laser so that the laser changes the collision of objects it hits to A and D?
Last edited by SodaJerk on Wed Feb 10, 2010 2:34 am, edited 1 time in total.
- SodaJerk
- Posts: 8
- Joined: Mon Feb 08, 2010 4:40 am
Re: Laser that changes objects collision?
e.object.collideset=X Replace x with the desired numrical value.
-
Sonic - Posts: 1467
- Joined: Tue Sep 01, 2009 6:18 pm
- Location: America!!!
Re: Laser that changes objects collision?
That did not work. I tried adding the code to the laser and object and it did not do anything.
- SodaJerk
- Posts: 8
- Joined: Mon Feb 08, 2010 4:40 am
Re: Laser that changes objects collision?
Sonic, it's not e.object, it's e.geom.
- Code: Select all
e.geom.collideSet = 9
-
standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: SOLVED - Laser that changes objects collision?
That worked. Thank You standardtoaster. This code works by adding it to the laser or the object. Thanks.
- SodaJerk
- Posts: 8
- Joined: Mon Feb 08, 2010 4:40 am
Re: Laser that changes objects collision?
standardtoaster wrote:Sonic, it's not e.object, it's e.geom.
- Code: Select all
e.geom.collideSet = 9
Crap. I keep forgetting that. Sorry.
-
Sonic - Posts: 1467
- Joined: Tue Sep 01, 2009 6:18 pm
- Location: America!!!
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests