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.

[XP]Temporary Effects

I know this is something of a simple question... but how would I be able to turn on a switch for a minute in response to an item being used? I've twigged that you need to link the item to a common event but the method I've used in the common event doesn't work -

Code:
@>Control Switches: [0026: Muscle Enhancer] = ON
@>Change State: Entire Party, + [Strength Enhanced]
@>Wait: 100 Frame(s)
@>Change State: Entire Party, - [Strength Enhanced]
@>Control Switches: [0026: Muscle Enhancer] = OFF

Whenever this common event is triggered the player cannot move throughout - I know this is because of the 'wait: 100 frames' but I dont know how to rectify it - does anyone have any ideas? Thanks in advance =]
 
It's a common event? It must be set to "Parrallel Proccess" with the respective switch, Auto-Run will halt player's inputted movement, parallel will make the process run in the background without haltering player's inputable movement.
 
Actually I believe the Trigger has to be set to "None", since it's called by an item.

A work-around is creating another Parallel Processing common event triggered by the switch [26: Muscle Enhancer]. In that Parallel Processing, cut-and-paste lines 3-5 of the first common event commands. That should do the trick.
 

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