Edited by freakmanguy, 21 April 2009 - 01:15 AM.
Bounce?
#1
Posted 20 April 2009 - 09:18 PM
#2
Posted 20 April 2009 - 09:32 PM
#3
Posted 20 April 2009 - 09:53 PM
i tried that in the 1st place and thats exactly the problem... -.- if i use the dnd bounce command, it bounces like crazy off of other things like bullets and background stuff. i need something that does the same thing, but uses a different command(s). i want it only to bounce off this ONE objectIn the collision event with that one object use the bounce command.
#4
Posted 20 April 2009 - 09:58 PM
Edit: May I ask what shape that one object is?
Edited by wiiowner, 20 April 2009 - 10:07 PM.
#5
Posted 20 April 2009 - 11:05 PM
Edited by freakmanguy, 20 April 2009 - 11:06 PM.
#6
Posted 20 April 2009 - 11:10 PM
#7
Posted 21 April 2009 - 01:14 AM
#8
Posted 21 April 2009 - 02:20 AM
speed = -speed;
or alternatively
direction = -direction;
You may need to add other stuff, to stop the ball from getting stuck. (like move_contact)
Good luck!
~DD
#9
Posted 21 April 2009 - 11:08 AM
[codebox]if other.speed>0 then
{
exit
}
if other.speed=0
{
x=x-speed-number //the higher the number is ,the higher the bounce will be
}
[/codebox]
I Hope that helped
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











