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
13,522
Reaction score
14,255
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
383
Reaction score
91
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
281
Reaction score
106
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
7,842
Reaction score
5,228
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 Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,243
Members
137,609
Latest member
shododdydoddy
Top