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 / moving a sprite

Author
Message
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 13th Feb 2009 04:02
I was just wondering how you move a sprite.
Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 13th Feb 2009 09:50 Edited at: 13th Feb 2009 09:50
You just use the sprite command again, I think.
(sprite spriteID, x, y, imageID).

"We know some things about poodles, for example that they are alive, they can bark, they eat meat..."
- Extract from Objects first with Java.
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 14th Feb 2009 02:22
Or you can use

MOVE SPRITE SpriteNo,Speed

combined with

ROTATE SPRITE SpriteNo,Speed

to move the sprite in straight lines.

Rudolpho
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 14th Feb 2009 10:20
Hah, I didn't know you could do that; nice
(Allthough I don't use sprites very often, but someday that could probably be quite useful).

Login to post a reply

Server time is: 2024-09-28 02:31:35
Your offset time is: 2024-09-28 02:31:35