A Script that turns your character invisible.

Joined
Apr 24, 2016
Messages
24
Reaction score
0
First Language
English
Primarily Uses
Can someone make a script for me that will make your character invisible by a press of a button?
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,714
First Language
English
Primarily Uses
RMMV
Why don't you just create a common event that waits for a button press and then changes the opacity on the player?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
Please show a screenshot of your event, then we can check where you made an error.
 
Joined
Apr 24, 2016
Messages
24
Reaction score
0
First Language
English
Primarily Uses
Okay. 


I included one image with every image and an explanition.


Then I included the images separate from each other.

yes.PNG

3.PNG

1.PNG

2.PNG

es.png
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
823
First Language
Hungarian
Primarily Uses
RMVXA
Parallel events loop automatically. If you enter a loop command, it will repeat the commands inside that loop forever, unless you use a break loop command inside the loop.


Point is, you don't need a loop in that parallel event at all.


Also, make sure to enable the "Skip if can not move" option for all evented move routes, because if the event can't finish the move route, that event will freeze if you don't enable that option.
 
Joined
Apr 24, 2016
Messages
24
Reaction score
0
First Language
English
Primarily Uses
Parallel events loop automatically. If you enter a loop command, it will repeat the commands inside that loop forever, unless you use a break loop command inside the loop.


Point is, you don't need a loop in that parallel event at all.


Also, make sure to enable the "Skip if can not move" option for all evented move routes, because if the event can't finish the move route, that event will freeze if you don't enable that option.
So I did this, and they move at first then once they move their first set, they stop.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
There are more errors there (for example the common event should be on parallel if it is to check the button, and it needs an else-branch for disabling the invisibility when not pressing it), but perhaps you should explain in more detail what exactly you want to happen in your game. Then we can provide better help, because originally you said nothing about that moving event.


Additionally, why are you using opacity in the move route? There is a direct command to turn the player invisible, change transparency on page two of the event commands
 
Last edited by a moderator:
Joined
Apr 24, 2016
Messages
24
Reaction score
0
First Language
English
Primarily Uses
[SIZE=10.5px]Well so the character is trying to dodge these guards.[/SIZE]


[SIZE=10.5px]So turning him invisible makes them not aware that he is there.[/SIZE]
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
OK, that is something entirely different.


We thought you meant the player to be invisible to the player, even when invisible in that way the data would still be there for the computer events.


So at first you have to tell us how the event is supposed to react to the player? currently it would always ignore him, no matter if the player is visible or invisible.
 
Joined
Apr 24, 2016
Messages
24
Reaction score
0
First Language
English
Primarily Uses
The event is supposed to walk on a set path and if it sees the player will give the player a game over.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
Events cannot see the player - they can only touch him, and that would need an event touch trigger, not a parallel process.


I think you need to get more familiar with the engine itself and what it can and can't do, before we can help you getting farther.


Because first you'll need to implement something that allows the events to detect the player at a distance, either by script or by event, before you can even try to make the player invisible to that detection.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top