Replace H&V movement with diagonal movement

Status
Not open for further replies.

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
Hello!
I need help modifying how the movement system works. What I want is to replace the horizontal and vertical movement, with ONLY diagonal movement.

This being:
UP = UPPER_RIGHT
LEFT = UPPER_LEFT
RIGHT = LOWER_RIGHT
DOWN = LOWER_LEFT

There are tons of scripts to add diagonal movement, but not to change it to only diagonal.
Is there a way to change the basic system of VX Ace so it affects both player and events?

Thank you so much for your help!
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,573
Reaction score
6,503
First Language
Indonesian
Primarily Uses
RMVXA
Are you planning on using isometric map? Or are you still using vertical / horizontal grid perspective like default?
 

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
I'm sticking with the V/H grid perspective but with a parallax map to give the isometric feel.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,573
Reaction score
6,503
First Language
Indonesian
Primarily Uses
RMVXA
That way you will never reach some certain grids. Are you sure about that?
 

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
You're right, it will be like the bishop in chess.
Is there other way to acomplish this? I was going to use an isometric engine called Layy Meta Engine, it comes with Gubid's Tactical Battle System. But it doesn't look right at all, the screen shakes when walking and it doesn't have a light and dark system to give the maps the right feel.
Dou you by any chance know of a script to rotate the camera in a isometric perspective?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,030
Reaction score
13,669
First Language
English
Primarily Uses
RMMV
I haven't tested this, but give it a go ... in a new slot, above Main.

Code:
class Game_Player < Game_Character
  def move_by_input
    return if !movable? || $game_map.interpreter.running?
    case Input.dir4
      when 2: move_diagonal(2, 4)
      when 4: move_diagonal(8, 4)
      when 6: move_diagonal(2, 6)
      when 8: move_diagonal(8, 6)
    end
  end
end

If there are problems as mentioned above, you can just remove it again.
 

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
Thanks @Shaz , but i'll keep searching for an alternative. I'll need a script to rotate the camera or make the maps isometric. Do I have to change the title of the thread, or keep it?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,030
Reaction score
13,669
First Language
English
Primarily Uses
RMMV
If you are now searching for something different, you should probably ask for this thread to be closed (by reporting your first post) and create a new one.
 

FAGC54

What was that variable for?
Veteran
Joined
Apr 22, 2017
Messages
49
Reaction score
2
First Language
Spanish
Primarily Uses
RMVXA
Thanks, I'll do that.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,307
Reaction score
8,512
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

rux
Just 80% of my motivation on game making lmao, anyone got tips on how to not be unmotivated?
I've signed up for a job training program for people with Asperger's Syndrome. I went to a "test run" today so they could see how well I did with simple jobs, and I amazed them. Most new people do it in 30+ minutes, while I finished in a mere 15 minutes. Gives me time to work on a screenplay for Studio MDHR...
People,I have seen that Someone from China/Chile and London is doing a Vaccine Against COVID-19.
Doing anything that yield good result in the long run is like sowing seeds. With proper care, they will grow and bear fruits. I'm excited for tomorrow. :D

Forum statistics

Threads
105,453
Messages
1,013,828
Members
137,103
Latest member
Shierk
Top