Checking position of Actors in Battle

LackeDragon

Veteran
Veteran
Joined
Jun 2, 2012
Messages
30
Reaction score
2
First Language
French
Primarily Uses
RMMV
Hello!

I'm actually working on a Battle system that make the actors stay in place where they finished the attack.
My problem is, if I'm really unlucky with the movements of those actors, they can end up off screen after a while.
In the uploaded example, they would continue their way to the bottom of the screen, which I don't want!

So, I was wondering if there a way to check of the current active actor/battler pposition in the screen.
For example I found "$gameTroop.members()[EnemyIndex]._screenY > 500" for the enemy

It works but it's not really that usefull as I need to check if for each corner of the screen, and every possible present enemy on screen.
I also didn't found the one for the player's party member.

So, in brief :
Is there a script call to say "Check the active battler position on screen" or something similar?

Thanks!
 

Attachments

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
653
Reaction score
391
First Language
English
Primarily Uses
N/A
Are you using Yanfly's Action Sequencing by any chance?
 

LackeDragon

Veteran
Veteran
Joined
Jun 2, 2012
Messages
30
Reaction score
2
First Language
French
Primarily Uses
RMMV
I don't. I use VE Battle Motions right now.
Why that?
 

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
653
Reaction score
391
First Language
English
Primarily Uses
N/A
The method I use to get the positioning of sprites is provided by Yanfly's action sequencing. Not sure how else to get it. Sorry about that. :(
 

LackeDragon

Veteran
Veteran
Joined
Jun 2, 2012
Messages
30
Reaction score
2
First Language
French
Primarily Uses
RMMV
Hum maybe still explain?
It may gives me some hints on how to proceed if VE Battle motions has something similar.
I would have loved using Yanfly one, but unfortunately, the fact that it is linked to the battle core engine create a lot of problem on my project :p
It's not really compatible with a lot of things.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top