I've run into a problem, I think that both the sprite and image ID have to be set to different numbers so I tried this...
sync on
sync rate 40
create animated sprite 1,"Graphics/Stand.png",1,4,1
create animated sprite 2,"Graphics/Walk.png",12,4,2
set sprite 1,1,1
sprite 1,1,1,1
set sprite 2,1,1
sprite 2,100,1,2
do
play sprite 1,1,4,50
play sprite 2,1,48,50
sync
loop
This is a simple simulation of two animated sprites playing next to each other. When I load them both into the exe simulatnously, one image is substantially larger then the other.
The animated sprite with sprite/image ID of 1, is about four times taller then it should be. The second animated sprite (with sprite/image ID of 2) is displayed the correct size.
I decided to turn the code around...
sync on
sync rate 40
REM *inverted these codes*
create animated sprite 2,"Graphics/Walk.png",12,4,2
create animated sprite 1,"Graphics/Stand.png",1,4,1
set sprite 1,1,1
sprite 1,1,1,1
set sprite 2,1,1
sprite 2,100,1,2
do
play sprite 1,1,4,50
play sprite 2,1,48,50
sync
loop
With this code, the animated sprite with sprite/image ID 1 now animates properly at it's correct size. However, the second one now is much larger, approxametly 12 times longer and four times taller then it should be. Are these codes linked in order?
Is this a glitch? Or am I supposed to create the new sprite animation every time I want to use it?