Can someone make a script for me that will make your character invisible by a press of a button?
A Script that turns your character invisible.
RGSS3 Script RequestsWhy don't you just create a common event that waits for a button press and then changes the opacity on the player?
im an idiot. i found it.
Hey Shaz, I did the common event. It doesn't work.
Can you help me?
Can you help me?
Please show a screenshot of your event, then we can check where you made an error.
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.
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.
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
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
[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]
[SIZE=10.5px]So turning him invisible makes them not aware that he is there.[/SIZE]
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.
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.
The event is supposed to walk on a set path and if it sees the player will give the player a game over.
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.
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.
Original thread: https://forums.rpgmakerweb.com/threads/a-script-that-turns-your-character-invisible.61461/



