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.

2D All the way! / Sprites are sticking together upon collision

Author
Message
claudio
23
Years of Service
User Offline
Joined: 1st Jun 2003
Location:
Posted: 12th Jan 2006 22:09
Could someone please take a look at this code and tell me why the sprites are sticking together. The images used in the program are simple 40 pixles by 40 pixles colored boxes and I am using Dark Basic Pro. upgrade 5.7

Thank you very much for your help.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 13th Jan 2006 09:05
when sprites collide you have to reposition them so that they are not colliding anymore. Best to remember their last position, before they were moved, and put them back there again.

Darkbasic MADPSP
20
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 13th Jan 2006 17:35
no source

http://www.users.zetnet.co.uk/csimon/spain03/days2_3.htm << where i went for my holiday or www.portaventura.es

Login to post a reply

Server time is: 2026-06-12 23:24:51
Your offset time is: 2026-06-12 23:24:51