The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Django_red on January 09, 2007, 10:23:26 PM

Title: Help with Editing Battler Locations -EDIT-
Post by: Django_red on January 09, 2007, 10:23:26 PM
-EDIT- I got it to look a bit more like i wanted it to, but now my only problem is the order of the hero battlers...i need them to be in reverse, since the ones that are supposed to be in the background are overlapping the the ones that are supposed to be in the foreground. Can anyone dicipher this code and tell me what (and How) to adjust the troop battler order so i can fix the problem?

Code:
def screen_x
    if self.index != nil
      return self.index * 40 + 360
    else
      return 0
    end
  end

Code:
def screen_y
    return self.index * 20 + 220
end

Code:
def update
    super
    if $game_temp.battle_main_phase
      self.contents_opacity = 255
    end
  end
end [/i]



Alright, its looking like this right now,

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv612%2Fdjango_red%2Fbattleorder.jpg&hash=18eaf52d0097412c103ec08805ca3fbb08ea4c95)
As you can see, the battler order is in reverse, at least for the last party member. He's behind the second party member (the gunner) when he should be overlapping him.

ideally,  i'd like it to look more like this: (photoshop edit)
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg.photobucket.com%2Falbums%2Fv612%2Fdjango_red%2F003-Forest01test.jpg&hash=07063ea7bf125485e4bd8f01a9a315904780f14d)
-thanks



Title: Re: Help with Editing Battler Locations -EDIT-
Post by: Django_red on January 11, 2007, 05:20:58 AM
To be honest im not sure if i'm editing the right numbers here, or if i can maybe change it in the database somehow?