Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / HELP WITH "ICE" TYPE OF COLLISION

Author
Message
Carlitos
21
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 13th Jul 2003 23:26
Hey,
I need help with the curvevalue commands. i want to make a pinball type game but need to know how to make things bounce and 'slide away' of other objects. almost as if it were on ice. I get how to move it around, but the collision doesn't work.
--carlitos
Carlitos
21
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 14th Jul 2003 17:31
naa, tried that already, i need objects to bounce off each other
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 14th Jul 2003 19:40
Try using speed_x# and speed_y# with
sprite 1,(sprite x(1)+speed_x#),(sprite y(1)+speed_y#),1

Find the angle between the two hitting things with atanfull() and use sin() and cos() to alter the speed_x# speed_y# values appropriatly.
Carlitos
21
Years of Service
User Offline
Joined: 8th Jul 2003
Location: United States
Posted: 14th Jul 2003 20:32
HEY, THANKS.
It doesn't work 100% of the time but it works!

--carlitos

Login to post a reply

Server time is: 2024-11-24 22:47:29
Your offset time is: 2024-11-24 22:47:29