Force button push

jakr8911

Veteran
Veteran
Joined
Feb 18, 2017
Messages
34
Reaction score
1
First Language
english
Primarily Uses
Other
Is there a way to make an event that force the game to press something, without the player press it?
 

Hyouryuu-Na

Sapphire Sodium
Veteran
Joined
Jun 15, 2017
Messages
947
Reaction score
2,213
First Language
Not English
Primarily Uses
RMMV
I don't understand. You don't actually need the game to press a button if the player doesn't need to press it.
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
There is to simulate a button press, but it's probably not what you want to do.

Take an example of the old Mario games. When the player presses 'A', Mario jumps. Rather than simulate a button press of 'A', it would be better just to call the "jump" function.

So what action are you trying to do? We can suggest how to directly force that action.
 

Frogboy

I'm not weak to fire
Veteran
Joined
Apr 19, 2016
Messages
1,704
Reaction score
2,208
First Language
English
Primarily Uses
RMMV
Are you trying to make a tutorial sequence that shows the player how to navigate the menus something?
 

jakr8911

Veteran
Veteran
Joined
Feb 18, 2017
Messages
34
Reaction score
1
First Language
english
Primarily Uses
Other
What im trying to do is to press the space/z/enter button in an event, so the character can show this cool animation. I'm using the chrono engine from mog hunter

It is so much easier just to stimulate press space/z/enter, then to make the animation it self, the animation is an attack animation, the character swing his sword to the enemy on the map not in the battle sequence
 

Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
523
Reaction score
415
First Language
English
Primarily Uses
RMMV
If you want the player to attack, use

Code:
$gamePlayer.commandRasWeapon()
 

jakr8911

Veteran
Veteran
Joined
Feb 18, 2017
Messages
34
Reaction score
1
First Language
english
Primarily Uses
Other
Ow my god it work, thank you so much

Now can i stimulate the same thing but for npc? So they like having a sword fight on the map?
 

Restart

Veteran
Veteran
Joined
Mar 15, 2019
Messages
523
Reaction score
415
First Language
English
Primarily Uses
RMMV
Ow my god it work, thank you so much

Now can i stimulate the same thing but for npc? So they like having a sword fight on the map?
Try replacing the $gamePlayer with "$gameMap.event(whatevertheeventnumberofyournpcis)"

Should work but haven't tested.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top