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! / Teleporting Sprites

Author
Message
Mickm
20
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 11th May 2006 18:45
How would I "teleport" a sprite from 1 edge to another using DBPRO?

I have tried some things like

And


I have included most of my code for you guys to look at.

http://www.gamestack.org
Mickm
20
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 11th May 2006 21:04
Never mind, took me an hour but I finally figured it out.
I have no idea why it wasn't working before but heres what I ended up doing.



http://www.gamestack.org
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 12th May 2006 12:59
if you add the sprites size to the screen width equation it will slide off the screen before it blinks out

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself 
Mickm
20
Years of Service
User Offline
Joined: 22nd Apr 2006
Location: Kingston, ON
Posted: 12th May 2006 16:15
Thanks for the tip.
Ill be posting the finished version of my game shortly after I play test it for awhile for any bugs.

http://www.gamestack.org

Login to post a reply

Server time is: 2026-07-04 11:45:35
Your offset time is: 2026-07-04 11:45:35