Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

mount and unmount my horse please!!

hi there as you can probably see by the title of my thread i need help.. lol
ok what i need is help with an event to get my character to get on and off of his horse.
i made the animations for it, but other people made the character(except the hair, i recolored it) and the horse, and here they are.

ok what i want is to make it so when you press the "L" game button("A" on the keyboard) it goes through the mounting animation then changes the character graphic to the one of him riding the horse, then once thats done i want to be able to press the "L" game key again and unmount the horse(play the mounting animation backwards).. i have trying to do this for about 3 hours now and i can get it to mount, but it freaks out and glitches alot when i unmount. can someone help me do this?

thanks.


here is what my common even looks like.. the unmount common event is exactly the same just backwards and i also have a 2 frame wait in between every change event graphic. 
(sorry i couldnt fit the whole thing, at the bottom where it says else handler, the only thing below that is the player speed changes to 4)
 
Instead of seperate move events, you could just put it in the same move event, like:

@>Move Event:
:  :  Change graphic(blah)
:  :  Change graphic(blah)
:  :  Change graphic(blah)

And then of course, you need to add waits in between the frames. Something like:

@>Move Event:
:  :  Change graphic(blah)
:  :  Wait(1)
:  :  Change graphic(blah)
:  :  Wait(1)
:  :  Change graphic(blah)
:  :  Wait(1)
 
If you want it to mount, then unmount, turn on a switch, like this:
Code:
@>Conditional Branch: Button [X] is Down
  @>Conditional Branch: Switch [0001: Mounted] == OFF
    @>Set Move Route: (mount horse)
    @>Control Switches: [0001: Mounted] = ON
  : Else
    @>Set Move Route: (unmount horse)
    @>Control Switches: [0001: Mounted] = OFF
 : Branch End
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top