The RPG Maker Resource Kit

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

Title: Transparency and order issues -Redux-
Post by: Django_red on January 09, 2007, 09:26:19 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: Requesting simple edit of existing BS
Post by: Django_red on January 09, 2007, 11:18:31 PM
So yes, could someone either help me figure out what (or what numbers) im supposed to move, and where to find it, or Just write up a quick script for this?
Title: Re: Requesting simple edit of existing BS
Post by: italianstal1ion on January 10, 2007, 04:45:09 AM
Well, if you've moved the battlers before, you've obviously found the right coordinates, just mess around with em until you find what you like.

Umm, the monsters placement is how you put them in Database: Monster Group

And for transparencies, I don't know the exact line for that...
Title: Re: Requesting simple edit of existing BS
Post by: feildmaster on January 10, 2007, 05:18:10 AM
pretty sure u mess around with the... red parts...

"40 + 360"
and
"20 + 220"

not entirely sure and... is that every thing you have...? also, that only changes the actors... to change the monsters... i'd assume it's done the same way but in the Game_Enemy... I'd assume you'd need to change it to move each character differently, like having it give different spots for 1st, 2nd, 3rd, and 4th... (there is an easy way to do it...) then a different way for the monsters cuz of course, there are is a big limit to them.
Title: Re: Requesting simple edit of existing BS
Post by: Django_red on January 11, 2007, 04:43:43 AM
Quote from: feildmaster on January 10, 2007, 05:18:10 AM
pretty sure u mess around with the... red parts...

"40 + 360"
and
"20 + 220"

not entirely sure and... is that every thing you have...? also, that only changes the actors... to change the monsters... i'd assume it's done the same way but in the Game_Enemy... I'd assume you'd need to change it to move each character differently, like having it give different spots for 1st, 2nd, 3rd, and 4th... (there is an easy way to do it...) then a different way for the monsters cuz of course, there are is a big limit to them.

Thanks! That was really helpfull, and i think i figured out something...i'm pretty sure the 40 is the spacing between the battler sprites, and the 220 is the quardinates going to the x. Cool~
Title: Re: Transparency and order issues -Redux-
Post by: sum41freak on January 12, 2007, 04:41:44 AM
You know, you really should put those script examples into a code box...
Title: Re: Transparency and order issues -Redux-
Post by: Django_red on January 12, 2007, 10:19:18 PM
Quote from: sum41freak on January 12, 2007, 04:41:44 AM
You know, you really should put those script examples into a code box...


I would, but...i'm afraid i dont know how...;_;
Title: Re: Transparency and order issues -Redux-
Post by: feildmaster on January 14, 2007, 01:56:28 AM
[code][*code]

looks like that but the * = / -_-[/code]