Replace H&V movement with diagonal movement

Discussion in 'RGSS3 Script Requests' started by FAGC54, Sep 13, 2018.

Thread Status:
Not open for further replies.
  1. FAGC54

    FAGC54 What was that variable for? Veteran

    Messages:
    48
    Likes Received:
    2
    Location:
    dotNET Productions
    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!
     
    #1
  2. TheoAllen

    TheoAllen Self-proclaimed jack of all trades Veteran

    Messages:
    4,145
    Likes Received:
    4,582
    Location:
    Riftverse
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    Are you planning on using isometric map? Or are you still using vertical / horizontal grid perspective like default?
     
    #2
  3. FAGC54

    FAGC54 What was that variable for? Veteran

    Messages:
    48
    Likes Received:
    2
    Location:
    dotNET Productions
    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.
     
    #3
  4. TheoAllen

    TheoAllen Self-proclaimed jack of all trades Veteran

    Messages:
    4,145
    Likes Received:
    4,582
    Location:
    Riftverse
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    That way you will never reach some certain grids. Are you sure about that?
     
    #4
  5. FAGC54

    FAGC54 What was that variable for? Veteran

    Messages:
    48
    Likes Received:
    2
    Location:
    dotNET Productions
    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?
     
    #5
  6. Shaz

    Shaz Veteran Veteran

    Messages:
    37,184
    Likes Received:
    11,053
    Location:
    Australia
    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.
     
    #6
  7. FAGC54

    FAGC54 What was that variable for? Veteran

    Messages:
    48
    Likes Received:
    2
    Location:
    dotNET Productions
    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?
     
    #7
  8. Shaz

    Shaz Veteran Veteran

    Messages:
    37,184
    Likes Received:
    11,053
    Location:
    Australia
    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.
     
    #8
  9. FAGC54

    FAGC54 What was that variable for? Veteran

    Messages:
    48
    Likes Received:
    2
    Location:
    dotNET Productions
    First Language:
    Spanish
    Primarily Uses:
    RMVXA
    Thanks, I'll do that.
     
    #9
  10. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    13,583
    Likes Received:
    7,515
    Location:
    Texas
    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.

     
    #10
Thread Status:
Not open for further replies.

Share This Page