I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: MatthewRPG on March 27, 2015, 09:39:54 PM

Title: Animation is not working. Help, please.
Post by: MatthewRPG on March 27, 2015, 09:39:54 PM
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:
Title: Re: Animation is not working. Help, please.
Post by: YoSniper on March 27, 2015, 10:37:13 PM
I did see one problem:
The "if" statement in your step code looks like:

Code: [Select]
if y = 304; {
    vspeed = 0;
    //set an alarm
}

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.
Title: Re: Animation is not working. Help, please.
Post by: MatthewRPG on March 27, 2015, 11:22:32 PM
Okay, thanks.