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.

Author
Message
zxretrosoft
AGK Developer
9
Years of Service
User Offline
Joined: 10th Dec 2014
Location: Prague, Czech Republic
Posted: 20th Jan 2016 08:34 Edited at: 20th Jan 2016 11:15
I have a very beginner question. But I never found how to do it

I have a character that can be left and right.

To the right are sprites 1-8
To the left are sprites 9-16

But I must to put PlaySprite before the LOOP.

But when I want to animate the character to the left, ie. sprites 9-16, how do I do? Next PlaySprite I can not put... Thanks in advance!

I am sorry for poor English
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 21st Jan 2016 16:37
Wrong forum. This is SHOWCASE, not PRODUCT CHAT... but: PlaySprite( iSpriteIndex, fFps, iLoop, iFromFrame, iToFrame )
http://www.appgamekit.com/documentation/Reference/Sprite/PlaySprite.htm
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
zxretrosoft
AGK Developer
9
Years of Service
User Offline
Joined: 10th Dec 2014
Location: Prague, Czech Republic
Posted: 22nd Jan 2016 06:11 Edited at: 22nd Jan 2016 06:12
Quote: "This is SHOWCASE, not PRODUCT CHAT..."

First. Sorry, but it's not my fault. My topic has been moved by someone else

Secondly. Link to the documentation.
PlaySprite is before LOOP.
How do I start the next PlaySprite, eg. the next frame? (character left, character right...) That's what I was asking and what documentation is not
I am sorry for poor English
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 24th Jan 2016 19:55
Playsprite can be called within the loop too. Just set iFromFrame and iToFrame to 9 - 16, or if the "go left" animation is just a mirror image, you could use SETSPRITEFLIP to mirror the sprite.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
zxretrosoft
AGK Developer
9
Years of Service
User Offline
Joined: 10th Dec 2014
Location: Prague, Czech Republic
Posted: 25th Jan 2016 13:37
Thank you! But you must to stop command execution PLAYSPRITE. There is no other way... (?).

I am sorry for poor English

Login to post a reply

Server time is: 2024-04-16 17:11:44
Your offset time is: 2024-04-16 17:11:44