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 / Newbee logic issue

Author
Message
jeremy_c
14
Years of Service
User Offline
Joined: 21st Jan 2010
Location:
Posted: 21st Jan 2010 15:35
I'm trying to animate from frame 2 to 5 upon right arrow and then 6 to 10 when I hit the left arrow but it cycles through other undesired frames on its way to frame 6. I would think that the animation would just jump to frame 6 upon hiting the left key but it doesn't. Can someone look at this and tell me why this is happening?
Thanks


if (dbRightKey())
{


dbPlaySprite (2,2,5,60);

}



if (dbLeftKey())
{

dbPlaySprite (2,6,10,60);

}
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 21st Jan 2010 17:36 Edited at: 21st Jan 2010 17:36
This question gets asked alot, i was also helped with this question. Almost worth a sticky . This is the code i was given



If you still dont understand more code in this thread

http://forum.thegamecreators.com/?m=forum_view&t=164401&b=22

www.touchofdeathproductions.com
jeremy_c
14
Years of Service
User Offline
Joined: 21st Jan 2010
Location:
Posted: 21st Jan 2010 19:55
Thanks Marsh0. Worked like a charm.

Really appreciate it.

Login to post a reply

Server time is: 2024-10-01 23:41:09
Your offset time is: 2024-10-01 23:41:09