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.

[rmvx] probably a noobie question

okay this is what i am trying to figure out
i am wanting to know how to make somthing happen when you press and hold a button
and when you let go of said button something else happens

and in vx when you hold shift the character dashes
but i want to change it so that instead of dashing he/she will creep intead
and i also want to change the graphic for it so that it looks as thought they are sneaking
i have already created the graphics

i know that this is kinda veage
 
Ok i can help, First import your two sneaking and running graphics. Next you need a common Event. The code would be as follows

Name: Sneak/Run
Trigger: Parralel
Condition Switch: 0001:Sneak/Dash

Actual Code:
Conditional Branch If [whatever button] is being pressed
  Set Move Route Player
          Change Graphic [Running Character Graphic]
          Change Speed 5: Faster
Else
  Set Move Route Player
        Change Graphic [Sneaking Character Graphic]
        Change Speed 1: Slowest
Branch End


Adjust speeds as needed

Then on say your starting map, make sure that the switch 0001: Sneak/Dash gets turned on or, if it is associated with an item, after you open the chest or someone gives it to you.

Hope i helped.
 
srowland98":15zkuf4b said:
Ok i can help, First import your two sneaking and running graphics. Next you need a common Event. The code would be as follows

Name: Sneak/Run
Trigger: Parralel
Condition Switch: 0001:Sneak/Dash

Actual Code:
Conditional Branch If [whatever button] is being pressed
   Set Move Route Player
           Change Graphic [Running Character Graphic]
           Change Speed 5: Faster
Else
   Set Move Route Player
         Change Graphic [Sneaking Character Graphic]
         Change Speed 1: Slowest
Branch End


Adjust speeds as needed

Then on say your starting map, make sure that the switch 0001: Sneak/Dash gets turned on or, if it is associated with an item, after you open the chest or someone gives it to you.

Hope i helped.

when you press a button and hold it down doesnt it just at like a rapid fire
instead of it picking up that it is being held down it reads it as being pressed continually?

so this code would make the speed be uped by 5 every time

and also as far as the sneeking and dashing
i figured that there was a way to ajust it in the script
but i have absolutely no experiance with the scripting end of vx
i used to use RM2k and 2k3 before i made the jump to VX
 

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