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.

Character movement with a picture showing?

Greetings

I'd like to have my main character still be able to move while a picture is showing.
The picture would be a map, and display in one of the corners of the screen.
The position of the map would stay relative to where the player is. (In other
words, the map would always be in the upper left corner despite the character's
movement).

In the game, the map would pop up periodically based on a player touch event.

I thought that this could be done with events, but I can't figure it out.

I've used the search engine, and haven't seen anyting similar to what I'm asking.

Can this be done with events, or must I use a script?

Respectfully,

Falloutfan.
 
Are you using parralel process with this map?
If so, use Autorun.

Pictures show over the top of every other process, so you will be able to move while it is being shown.
I suggest you edit the script so the player cannot move whilst a picture is shown, or create a script that consists of a scene that shows your map.

If you want it with only events, then you'll have to cheat, make the event touch trigger a switch that turns on an autorun event that displays the picture and then has a conditional branch asking if a button is pressed then erase picture and turn off the switch. Ofcourse it wouldn't be that simple to do, but something like that.
 
I think Xilef misread your question, don't be confused.

By default, player is still able to move after you execute a showing picture command. And if you want it to be at the left upper corner, then just show it at the coordinate 0,0, which is the default coord.

So basically, if you want the map to show when the player touches a spot, and then disappears some times later:
1. Set event to that spot as player touch, and have it show the map picture and then turn on a switch.
2. On the second page of that event (conditioned by that switch), make it parallel processing and wait x amount of frames, then erase that picture. Then turn on another switch.
3. On the third page, which is conditioned by the prior switch, make it nothing.

You can use local switches, unless you want other events to detect which stage it is on.

The player will always be free to move that way; and you can adjust any of that to suit whatever your need is regarding periodic removal of the picture and etc.
 
Oops gave you a solution you weren't looking for.  I posted a way to keep changing map pictures base on map id and coordinates for a map that refreshes itself as a tool for navigation.

Reives has you covered.
 
Everybody-

Thanks for the speedy and well written replies. The parallel process and
switch method works well!

I had obviously not understood the "wait" command completely, as I hadn't realized
that it suspended character movement when in use.

Many thanks

Respectfully,
 

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