Where to put the WASD key movement for the player.

Sohei Sasahara

Villager
Member
Joined
Mar 7, 2016
Messages
7
Reaction score
0
First Language
English
Primarily Uses
This is my FIRST TIME using the RPG Maker VX Ace and also my first post, and I can say, what a nifty program!


As for a beginner, I encounter problems and I have to ask this, where can I edit the WASD key movement for my player/menu movement?


Well I have found some codes, but the problem, where to input them? (my hunch is telling me is putting it in a script, but how?)


I also tried the <F1> key mapping but my question would be, would the mapping only affects the maker of the RPG or not?


Thanks btw..  :)


Code:
#==============================================================================
# ▼ WASD Movement
# -- Last Updated: 2014.02.25
# -- Author: Helladen
#==============================================================================

module Input
  #--------------------------------------------------------------------------
  # alias method: self.dir4
  #--------------------------------------------------------------------------
  class <<self; alias helladen_dir4 dir4; end
  def self.dir4
    return 2 if Input.press?(:Y)
    return 4 if Input.press?(:X)
    return 6 if Input.press?(:Z)
    return 8 if Input.press?(:R)
    helladen_dir4
  end
end
 

The Art of Gaming

Owner of the Green Tunic in Dreamland
Veteran
Joined
Dec 25, 2014
Messages
88
Reaction score
31
First Language
English
Primarily Uses
It should go under materials and above main.
 

Sohei Sasahara

Villager
Member
Joined
Mar 7, 2016
Messages
7
Reaction score
0
First Language
English
Primarily Uses
It should go under materials and above main.
Thanks it was working but it was just facing not moving, is there something wrong?


OMG, I am so bothersome please forgive me //rmwforums.s3.amazonaws.com/emoticons/default_sad.gif  ;-;
 

The Art of Gaming

Owner of the Green Tunic in Dreamland
Veteran
Joined
Dec 25, 2014
Messages
88
Reaction score
31
First Language
English
Primarily Uses
Could it be conflicting with another script you have?
 

Sohei Sasahara

Villager
Member
Joined
Mar 7, 2016
Messages
7
Reaction score
0
First Language
English
Primarily Uses
Oops, my fault, I placed my character in the water! THANK YOU senpai~


Although the WASD movement does not work in menu? Is there another script for this?
 

The Art of Gaming

Owner of the Green Tunic in Dreamland
Veteran
Joined
Dec 25, 2014
Messages
88
Reaction score
31
First Language
English
Primarily Uses
It doesn't seem to no. Also, I haven't seen a script for WASD use in menus unfortunately.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

Sohei Sasahara

Villager
Member
Joined
Mar 7, 2016
Messages
7
Reaction score
0
First Language
English
Primarily Uses
Since my problem is not done yet ;-; I FOUND A SCRIPT WHICH IS BELIEVED THAT IT HAS FULL KEYBOARD (movement, menu, choices and others)


It's from Zalerinian and I hope this is the script that what I've been looking for, here's the topic btw;


http://forums.rpgmakerweb.com/index.php?/topic/24868-rgss3-keyboard-manager/ (the script is downloadable so I'm pretty sure I'm not allowed to paste it)


But one problem, my character cannot move! It's like it's missing something that I am not aware of!


Can you help me again community //rmwforums.s3.amazonaws.com/emoticons/default_biggrin.gif 
 

Sohei Sasahara

Villager
Member
Joined
Mar 7, 2016
Messages
7
Reaction score
0
First Language
English
Primarily Uses
Never mind, I solved the problem myself. //rmwforums.s3.amazonaws.com/emoticons/default_smile.gif


Anyone wondering how I did, change the letters of DOWN, UP, LEFT, RIGHT, change it to WASD and make sure it is lower cased AND no keys have 2 functions.


PROBLEM SOLVED //rmwforums.s3.amazonaws.com/emoticons/default_smile.gif
 

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

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,580
Members
137,843
Latest member
Betwixt000
Top