Fangames > Programming Questions

Animation is not working. Help, please.

(1/1)

MatthewRPG:
In the very start of my fangame, there is a small cutscene that plays that is very similar to the original Game Boy's intro.
"Create" Coding
https://i.gyazo.com/737cc9b9af6bbaa5bba98f4a96d149c6.png

"Alarm 0" Coding
https://i.gyazo.com/6315b9dfef566bbe90a3c8ea599b6741.png

"Alarm 1" Coding
https://i.gyazo.com/f5f0b1b26a2a6f0324a659157bc9cfd9.png

"Step" Coding
https://i.gyazo.com/c099341c59c1e07e0eec2b15aea1e3d3.png

However, the object of "matthewrpg" is just sitting at the top of the screen, not moving one pixel.
https://i.gyazo.com/99ad259a043646bdb283208180a7b074.png

If you all could offer any help, that'd be great...  :BibleThump:

YoSniper:
I did see one problem:
The "if" statement in your step code looks like:


--- Code: ---if y = 304; {
    vspeed = 0;
    //set an alarm
}
--- End code ---

That semicolon should not be there. It may very well be screwing up how the program interprets the code, so that the vspeed is getting set to 0 regardless of the y value.

MatthewRPG:
Okay, thanks.

Navigation

[0] Message Index

Go to full version