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.

Dark GDK / Small Problem with "dbMoveSprite"

Author
Message
Fr4gory
18
Years of Service
User Offline
Joined: 13th Nov 2005
Location:
Posted: 22nd Jun 2009 01:11
Started today on experimenting with sprites, I tried to use dbMoveSprite command to move the sprite to the right and the left, but instead it moves up and down. Any suggestions why it does?

Here's the code used



Any help would be highly appreciated, thank you

Michel Cilissen - CiliSoft Software Solutions
michel@techblog24.com - http://www.cilisoft.tk
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 22nd Jun 2009 03:34 Edited at: 22nd Jun 2009 03:35
dbMoveSprite can only move in two directions relative to the rotation of a sprite. A sprite with a rotation of 0 or 180 will move up/down. A sprite with a rotation of 90 or 270 will move left/right. But rotating the sprite might look weird, so my suggestion is to have a variable for each of the sprite's coordinates.



Your_Health = (My_Mood == HAPPY) ? 100 : NULL;

Login to post a reply

Server time is: 2024-10-01 05:58:47
Your offset time is: 2024-10-01 05:58:47