Author Topic: Animation is not working. Help, please.  (Read 1234 times)

MatthewRPG

  • Guest
Animation is not working. Help, please.
« 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:

YoSniper

  • Awexome
  • Global Moderator
  • Spike Dodger
  • Posts: 142
  • People regard me as a programming overlord.
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 41.0.2272.101 Chrome 41.0.2272.101
    • View Profile
    • My YouTube
  • Playstyle: Keyboard
Re: Animation is not working. Help, please.
« Reply #1 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.
I don't traverse the forums as much anymore. Follow me on Twitter if you want to keep tabs on me!

Twitter: @YoSniperGames
Twitch: yosniper

Streams happen whenever I feel like it.

MatthewRPG

  • Guest
Re: Animation is not working. Help, please.
« Reply #2 on: March 27, 2015, 11:22:32 PM »
Okay, thanks.