Parallax maps vs lag/game crash

Status
Not open for further replies.

Bex

Veteran
Veteran
Joined
Aug 2, 2013
Messages
1,492
Reaction score
408
First Language
German
Primarily Uses
RMMV
Here another example where the Player transforms into a Dragon aslong he is holding the OK Button.
Wrong:
Code:
◆If:Button [OK] is pressed down
  ◆Change Actor Images:Harold, Actor1(0), Nature(6), Actor1_1
  ◆
:Else
  ◆Change Actor Images:Harold, Actor1(0), Actor1(0), Actor1_1
  ◆
:End
Better:
Code:
◆If:Button [OK] is pressed down
  ◆If:Self Switch A is OFF
    ◆Control Self Switch:A = ON
    ◆Change Actor Images:Harold, Actor1(0), Nature(6), Actor1_1
    ◆
  :End
  ◆
:Else
  ◆If:Self Switch A is ON
    ◆Control Self Switch:A = OFF
    ◆Change Actor Images:Harold, Actor1(0), Actor1(0), Actor1_1
    ◆
  :End
  ◆
:End
Conditions drain no performance in comparison to the execution of the Change Actor Graphic Command.
 
Last edited:

Elliott404

Game404
Veteran
Joined
Jul 4, 2018
Messages
735
Reaction score
2,307
First Language
English
Primarily Uses
RMMV
hmmm This gave me a good idea.
Thank you for sharing your event, sir.
 
Last edited:

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,573
Reaction score
6,496
First Language
Indonesian
Primarily Uses
RMVXA
Okay, I still couldn't find a problem of lagging (I don't know how-sorry-), but, I've managed to reduce the lagging by setting a wait command for 10 frames when loading the parallax tilemap.
OMG! All the stress I've put myself through when I could just solve the problem by using erase event command! :kaodes:
Thank you very much! And I'm terribly sorry for all the unnecessary troubles!
You have been told that the cause of lag can be various, pc spec, inefficient plugins, more events, or just inefficient events because of the user's error. Next time, please do not avoid the question by saying you're looking for a general cause of lag in parallax mapping. Your problem can be more specific than that.
 

Elliott404

Game404
Veteran
Joined
Jul 4, 2018
Messages
735
Reaction score
2,307
First Language
English
Primarily Uses
RMMV
Yes. I'm sorry about that, sir.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Lots of artists very active right now :)
I'll try all of my gestures.

This Is Vasily. I like him very much
If any composer here would like me to use their music as background on my plugin videos, just let me know.
Wee icons I've been making. I've totaled probably around 30 of them now! I'm trying to see if I can make a little spin on the status buff and nerf status effect icons. Want to add a bit of flair while making sure they are effective at communicating what's needed.

Forum statistics

Threads
103,082
Messages
997,123
Members
134,546
Latest member
rasdf
Top