jkeks

Warper
Member
Joined
Oct 3, 2022
Messages
4
Reaction score
2
First Language
English
Primarily Uses
RMMZ
Hello !
Is there way hide/show event in JavaScript ?

thx
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,966
Reaction score
16,019
First Language
English
Primarily Uses
RMMV

I've moved this thread to Javascript/Plugin Support. Thank you.



Why would you want to do this? There are ways to hide/show events using event commands, switches, and pages. Why do you need to do it via javascript?
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
1,283
Reaction score
824
First Language
Javascript
Primarily Uses
RMMZ
Hello !
Is there way hide/show event in JavaScript ?

thx
Just to change whether the event is visible?

That is like this:
*character*.setTransparent(true/false)

Examples:
JavaScript:
// Set the calling event to transparent
$gameMap.event(this._eventId).setTransparent(true)

// Set event #5 to visible
$gameMap.event(5).setTransparent(false)

// Set the player to transparent
$gamePlayer.setTransparent(true)
 
Last edited:

jkeks

Warper
Member
Joined
Oct 3, 2022
Messages
4
Reaction score
2
First Language
English
Primarily Uses
RMMZ
[move]Javascript/Plugin Support[/move]

Why would you want to do this? There are ways to hide/show events using event commands, switches, and pages. Why do you need to do it via javascript?
It's not usable to create 20 switches or 20 pager per each stuff in game..
Best way for me use variables.. but variables checked with condition >= .. very strange for me
simple equal variables will be the best, and JavaScript is unnecessary
 

Latest Threads

Latest Profile Posts

ScreenShot_12_7_2022_8_57_56.png
part of the common event help menu I'm working on. I used Yanfly's Common Event Menu to set it up and here's a screen of once you've selected one of the options. This one explains the 6 different battle commands.
KDS
Hey guys! Iam currently updating my free digital art shop , let me know if you need anything done :) https://forums.rpgmakerweb.com/index.php?threads/kds-free-open-digital-art-shop.17097/
Hello! I’d like to ask where is a good place to start logging about my game dev progress as production of my game goes forth
In one of our campus classrooms was a bag full of stuff people forgot there... my bag. That I forgot there xD
You know your room is too tiny for how much stuff you have when it gives you literal insomnia. I just cleared a bunch of stuff out and man it feels good!

Forum statistics

Threads
127,105
Messages
1,184,007
Members
167,030
Latest member
milchi
Top