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.

Idle animation?

So, I wanted to add a feature to my game where the main character or whoever is in the first party slot will go into an idle animation (not just a single frame, an animation) if the player doesn't touch the keyboard for more than 30 seconds. I know htis can't be evented, very much from experience and reading around first and a script I found doesn't suit my need as it won't allow for an animated idle animation. Something like [1,2,3,4]. I also would like if I could set different idle animations depending on switches, variables, weapons/armor equipped, items in inventory, and the like. Another important thing is the class of the character can be willingly changed by the player by a skill tree, so I need diffiration for the actor.class too.
 
This topic is still at the first page of script request forums, which probably where you would'Ve spotted it if you would'Ve posted in the correct forum. If, however, you do intend to script it yourself, that should give you a good, very basic idea of what you'd have to do, as well as an explanation of how idle animations would work.

Other than that, I very well believe that this can be evented, and frankly, I don't really see the difficulty. For reasons why it never should be actually done, though, refer to my signature comment about event engines.
 
BlueScope":14caogud said:
This topic is still at the first page of script request forums, which probably where you would'Ve spotted it if you would'Ve posted in the correct forum. If, however, you do intend to script it yourself, that should give you a good, very basic idea of what you'd have to do, as well as an explanation of how idle animations would work.

Other than that, I very well believe that this can be evented, and frankly, I don't really see the difficulty. For reasons why it never should be actually done, though, refer to my signature comment about event engines.

Doing it with events would be easy up until the bit where the player tries to move. =P
 
I still don't see the difficulty... conditionals asking for keys triggered should work just fine, within the bounds of event engines, that is. Either way, this topic is about script support... if anyone really wants to do this the infantile way, here you go.
 
BlueScope":1qkpwpr3 said:
I still don't see the difficulty... conditionals asking for keys triggered should work just fine, within the bounds of event engines, that is. Either way, this topic is about script support... if anyone really wants to do this the infantile way, here you go.
Well, I'll leave this alone after this post, as it's off-topic, but when you move, wouldn't it be moving in the idle position for like a second? I haven't tested it myself, but that seems like it would be the way things would go.
 
Well, about me thinking this couldn't be evented is because I had read a previous topic about this (but only difference was the idle animation was animated, just one frame) where the only problem with eventing it (which the tp provided) was it didn't work when the player was up against a wall or tile set as X passability.
 
Alright, just because everyone seems so horny for it, I'll explain it... (even though I'm afraid I'll worsebetter it...)

@Miles: Simple - store the avatar's x and y coordinates, handle button input, then check for the coordinates again. If they're equal, the character didn't move, aka don't show sprite changes at all. This is more tedious with events than with scripts, but it's still about the same procedure after all.
(the reason why nobody could tell you that is because most people in the Eventer's Corner apparently smoke crack all day, instead of thinking... why else would they be there and not able to answer that?)

@Poké: Not for a second, but for a frame - aka nearly not noticeable.

Again, please don't try to event this, though... and in conjunction with that, please stay on topic, as this is Script Support, not "Why I can't event something T_T"... I know I started it, I'm sorry, it'll never happen again.

now get these event engines out of my face!
 

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