Small incompatibility issue with two scripts (Solved)

Status
Not open for further replies.

kat821

Villager
Member
Joined
Apr 13, 2019
Messages
23
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA
I have two scripts by Galv: jumping ability and superman ability.
There's a small visual bug that happens when you have two of those scripts installed, that I would like to get rid of.
Here are two pictures to illustrate the issue:
.
I think I found the cause of this, but since I don't know much about scripting, I don't know what I should do next.
In the jumping script there's this line:
@priority_type = 1 if !jumping?
The priority should be set to 2 if the player is flying, so that they are above everything on the map. But because of this line, their priority is always set to 1 if they're not jumping.
I'd really apprieciate some help.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
12,607
Reaction score
12,927
First Language
English
Primarily Uses
RMVXA

I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

MobiusXVI

Game Maker
Veteran
Joined
Mar 20, 2013
Messages
363
Reaction score
85
First Language
English
Primarily Uses
Have you tried changing the order of the scripts in the editor? (i.e. put the jump script below the fly script and then the fly script below the jump script)
 

KK20

Just some XP Scripter
Veteran
Joined
Oct 11, 2018
Messages
122
Reaction score
52
First Language
English
Primarily Uses
RMXP
Might be as simple as changing the line you pointed out to
Code:
@priority_type = 1 if !jumping? && @altitude <= 0
 

kat821

Villager
Member
Joined
Apr 13, 2019
Messages
23
Reaction score
1
First Language
Polish
Primarily Uses
RMVXA
I changed the script like you told me to and it works! Thank you a lot, KK20.
I actually tried doing something like that before, but instead of @altitude <= 0, I wrote !flying? , but that resulted in an error. But like I said, I don't know much about scripts. If it weren't for your help, I'd probably still struggle with it, so I'm very thankful.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
6,050
Reaction score
4,260
First Language
Dutch
Primarily Uses
RMXP

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 Profile Posts

Broke: Dont move. -boring. -passive. -uncreative. Woke: Bewegen Sie Nicht! +authoritative. +foreign. +reminds your son that he's a garden gnome now.
My girlfriend left a note on the fridge saying 'This isn't working, goodbye.' I opened the refrigerator and it works just fine. Weird.
BCj
Could someone translate something from Japanese to English for me?

Forum statistics

Threads
94,386
Messages
920,548
Members
124,165
Latest member
Zflooder
Top