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.

Rgss's time system

I think I am gonna have problems explaining this, so here goes.

I am learning so I am trying to figure out how to use time in rgss so I will explain in a simple scenario fashion and hopefully someone can help me understand how to script in time scenarios.

I have 1 event on the map with a character graphic doing absolutely nothing but standing there motionless, after 20 seconds the event deletes.

I know this can be done with events but the example above is not important, what is, is that if someone can explain how I would set the time or time limit to 20 seconds in rgss I can take that as a base and learn on my own from there.

Any information even if it's only a paragraph or 20 paragraphs any help for learning the time in rgss will be very welcome, (the deletion of the event isn't important just used in example)
 
It works, but I was hoping for info on how to use this stuff.
Code:
hour = @total_sec / 60 / 60
min = @total_sec / 60 % 60
sec = @total_sec % 60

Would that help me use time in scripts without using events? if not what would or is it possible?

You have helped though.
 

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