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 / Basic collision question ?

Author
Message
Ant
19
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 16th Mar 2006 23:03
Hi all !

Could someone please have a look at my code and tell me where I'm going wrong ?

Ant
19
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 16th Mar 2006 23:08
Also how do you keep the boxes from going off screen when you use the RND() command ?

A link or some explanation on sprite positioning would be quite handy.

Thanks !
Chilled Programmer 420
19
Years of Service
User Offline
Joined: 24th Nov 2005
Location: NOT SAYING!, i dont wanna get kidnapped!
Posted: 17th Mar 2006 10:43
keep the boxes from goin of the screen by using
rnd(screen width())
or for a more professionel, and slightly faster approach
sw=screen width() athe the start of you prog
rnd(sw)

as for the collision error, ill check and post back

[url=www.freewebs.com/tyhrfg][img]bruce.bmp[/img][/url]
Chilled Programmer 420
19
Years of Service
User Offline
Joined: 24th Nov 2005
Location: NOT SAYING!, i dont wanna get kidnapped!
Posted: 17th Mar 2006 10:45


[url=www.freewebs.com/tyhrfg][img]bruce.bmp[/img][/url]
Ant
19
Years of Service
User Offline
Joined: 27th Nov 2004
Location:
Posted: 17th Mar 2006 20:54
Doooohhh

I should have guessed that really shouldn't I

Thanks Chillaxed, I apprieciate the help.

Login to post a reply

Server time is: 2024-11-27 01:44:04
Your offset time is: 2024-11-27 01:44:04