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.

AppGameKit Classic Chat / [BUG] SetSpriteAnimation on a scaled sprite

Author
Message
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 8th Sep 2015 15:48
When you set the sprite animation for a sprite that has something other than 1x1 scale the sprite will move. The direction depends on if the scale is lower or higher. Try the code below, no image is required.




CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 8th Sep 2015 16:38
It does other cool things too if the sprite size has been set:



This must be an "East Egg"

V2 T1 (Mostly)
Phone Tap!
Uzmadesign
lilpissywilly
AGK Developer
14
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 10th Sep 2015 16:47
Have you tried SetSpriteScaleByOffset?

My hovercraft is full of eels
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 13th Sep 2015 14:36 Edited at: 13th Sep 2015 14:36
lilpissywilly:
I have now but with no effect. I didn't think it would do anything since I have not changed the offset, nor is it the scale command that moves the sprite. The sprite moves when SetSpriteAnimation is called.

Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 15th Sep 2015 13:50
Fixed for the next version

Login to post a reply

Server time is: 2024-09-29 05:30:33
Your offset time is: 2024-09-29 05:30:33