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.

A couple of eventing questions

1. How would I create a event where the player must press a key on the keyboard within a specific amount of time or the event times out and they have to try again? Think like fishing in Pokemon from generation III.
2. I have managed to set up a movable furniture event system but every time I exit the house, the furniture moves back to their original locations. How would I make so their locations are locked in unless the player moves them again? I know I probably have to use two variables for Map X and Map Y, but so far I've nothing else.
 

Zeriab

Sponsor

1.
I don't know how fishing works in Pokemon, so I have a couple of questions.
What happens if a wrong key is pressed?
Is the an amount of frames where you are not allowed to press the key? (Think for example that you must hit the key in 10-30 frames from now)
Is it either a hit or a miss? Or are there good/perfect hits?

2.
Have a parallel process position all the furniture upon entrance and then be erased. (Erased so that it runs again next time you enter the map)
This would require that you have variables containing the Map X's and Map Y's and that you keep track of them as you move the furniture around.

*hugs*
 
Nothing will happen when the wrong key, but a error message may be displayed for them to notify which key to press for it to work.
Well I'm trying to decide what amount of frames...typical equal to 5-7 seconds.
Hit or miss.

Can you explain how to work number two?
 
If your using XP then 20 frames is one second, BTW. Also its kinda simple. you have to make a time variable. easy, make a wait 20 frames command, then add one to the time variable. it will be like seconds. THEN have a condtional branch reading if the key was pressed with in the time (or the time varible) . if the key was pressed turn on a switch. this switch controls another event that has all of your goodies. i mean you could not use a switch if it was all in one event. i did this all in one event, no switch (actually i did it in a common event, called by an event). i used two conditional branches. one to check to see if the time variable was >= to one and the the next contionial branch was the time variable <= to 10. THEN one last one to check to see if the button was pressed. I hope i helped. Know you can be so much intense with with if you really want to. but i was only trying to be simple.
 
You're going to have some issues with this system as players will just be able to hold down the key and when the correct time does finally pops up theyll catch the fish. Make it so if the player pushes it early the event finishes. Make a switch that starts the fishing. Then set a random wait time with a variable. Then flip a switch that starts the window the player can catch the fish in. You need another coditional to check if the button is pressed during that time. If he's you catch a fish. It will probably use one common event and one map event with two pages. Questions? pm me. I'll make you a demo in the morning.

EDIT: Woops. I posted on my iPod and didn't see the date. Sorry.
 

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