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.

Proceed on button press

hi there
i was just wondering if it was possible to make an event stop when you let go of a button and the resume once you start holding that same button again.

example - i have a desert that gets lighter as you go through it here is a screenshot of it.
http://img300.imageshack.us/img300/6640/desertofdeathcn3.png[/IMG]

i want to be able to make it so that when it gets light out (when the tint of the screen gets to be at (0,0,0,0)) it has an event to take you to a camp scene to sleep until the night, then do it all over again. after three days going in one direction you reach a new place.
if someone has a better way of doing this can someone please help me or if someone wants to help me and use my way but needs more explanation just let me know what you need and i'll let you know..

PLEASE HELP ME!!! i really need this done to release my demo!!
 
"i was just wondering if it was possible to make an event stop when you let go of a button and the resume once you start holding that same button again."
http://img340.imageshack.us/img340/2746/untitledjc2.th.jpg[/IMG]
I am guessing it is for an NPC, since the player does that automatically. Just change the 'Player' in the move event to the event you want to stop.

"i want to be able to make it so that when it gets light out (when the tint of the screen gets to be at (0,0,0,0)) it has an event to take you to a camp scene to sleep until the night, then do it all over again. after three days going in one direction you reach a new place.
if someone has a better way of doing this can someone please help me or if someone wants to help me and use my way but needs more explanation just let me know what you need and i'll let you know.."

If you are using a large map, then change the screen tone in response to the Players X and Y values. Like if he gets to Value 26 X then decrease it. Then when he gets to say 0 teleport to a new map or whatever. Whereas if you are using a small looping map then add a variable every time you change the screen and when the variable reaches a certain value teleport to a new map and have the scene.
 
Code:
Parallel process:

[Player Y] = Player Y map

if [Player Y] = 50
  screen tone = very dark
else
  if [Player Y] = 49
    screen tone = pretty dark
  else
    if [Player Y] = 48
      screen tone = a bit dark
    else
      if [Player Y] = 47
        screen tone = a little bright
      else
        if [Player Y] = 46
          screen tone = pretty bright
        else
          if [Player Y] = 45
            screen tone = almost normal
          else
            if [Player Y] = 44
              screen tone = normal tone
etc...
 

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