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.

Two questions

Okay, first off all, how y'all doin' tonight? :D

Now that that's over with, I've got some serious business.

1. I'm making a guard who is set to parallel process for a particular reason, but I'm trying to make it so if you press the action button on him, something happens, but it's already set to PP so how do I do that? I can't make a conditional branch 'if C is pressed' because then it would happen anywhere (parallel process, remember? lol) So that's the first thing.

2. I made an event where you step on a tile and a picture with words fade in and then fades out. I want the whole event to happen and still allow the player to move 100%. I don't know how to do this without the Wait command freezing the player and making him wait for the wait command to finish. I can't remove the wait command because it is a necessity to make the event look good/ function properly.

Anyone who could help I would be most appreciative.
 
I have no clue how to help with the 2nd one but for the first 1:
Set up variables player X and y and event x and y
check if the the player x is 1 above or below the event x
then check if button c is being pressed
the repeat with y
That way:
---|_|---
|_|-X|_|
---|_|---
if the character is in any of the locations around the event and presses space bar
Your commands will go through

All in all your event should look something like this:
Code:
 

@>Control Variables: [XXX: Player X] = Player's Map X

@>Control Variables: [XXX: Player Y] = Player's Map Y

@>Control Variables: [XXX: Event X] = This event's Map X

@>Control Variables: [XXX: Event Y] = This event's Map Y

@>Control Variables: [XXX: Event X] += 1

@>Conditional Branch: Variable [XXX: Player X] = Variable [XXX: Event X]

--@>Conditional Branch: The C button is being pressed

----@>Comment: Insert Your Event Command(s) [Here]

----@>

--: Branch End

: Branch End

@>Control Variables: [XXX: Event X] -= 2

@>Conditional Branch: Variable [XXX: Player X] = Variable [XXX: Event X]

--@>Conditional Branch: The C button is being pressed

----@>Comment: Insert Your Event Command(s) [Here]

----@>

--: Branch End

: Branch End

@>Control Variables: [XXX: Event X] += 1

@>Control Variables: [XXX: Event Y] += 1

@>Conditional Branch: Variable [XXX: Player Y] = Variable [XXX: Event Y]

--@>Conditional Branch: The C button is being pressed

----@>Comment: Insert Your Event Command(s) [Here]

----@>

--: Branch End

: Branch End

@>Control Variables: [XXX: Event Y] -= 2

@>Conditional Branch: Variable [XXX: Player Y] = Variable [XXX: Event Y]

--@>Conditional Branch: The C button is being pressed

----@>Comment: Insert Your Event Command(s) [Here]

----@>

--: Branch End

: Branch End

@>Control Variables: [XXX: Event Y] += 1

@>Comment: Insert Your Event Command(s) [Here]

 

Note this might or might not work... If you have problems with it I'll be happy to answer

Hope that helps :biggrin:
 
Re: The guard. What's the guard event doing that uses parallel process? Is it something that you can have another event do, and have the guard do the Action Button event that you want?

Re: The picture appearing/disappearing.

This is a good time for a Parallel Process event. You could easily do something like this:

Page one of event set to Player Touch. Page one turns on Self Switch A.

Page two is parallel process, and has the page conditions of Self Switch A being ON. Page two goes Show Picture, Wait a while, Move Picture to fade it out, Erase Picture, Self Switch A OFF.

Was that clear? I could mock up a screenshot if necessary.
 
Really? Wow, I didn't think it was as simple as having a parallel process. Thanks Unka Josh.

Also, thanks Velocir_X. I'll mess around with that event coding and see if I need any help (which I probably will).
 

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