Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,635
Reaction score
1,457
First Language
French
Primarily Uses
RMMV
Hi guys.


This other way to do thats.


$gameActors.actor(1)._hidden = true;
$gamePlayer.refresh();


Because when hide, this make move the actor(2) to the actor(1) position.


I need to set him transparent.


Tank you
 
Last edited by a moderator:

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,635
Reaction score
1,457
First Language
French
Primarily Uses
RMMV
Sans-titre---1.gif


The actorid(2) go to Actorid(1) when use hidden !!!
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,699
Reaction score
940
First Language
English
Primarily Uses
N/A
I don't know if it'll work directly on actors, because I don't tend to look at the battlesystem, but with sprites you could set the alpha to 0, or visible to false. 
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,635
Reaction score
1,457
First Language
French
Primarily Uses
RMMV
I don't know if it'll work directly on actors, because I don't tend to look at the battlesystem, but with sprites you could set the alpha to 0, or visible to false. 

i try this but nothing work !

Code:
$gameActors.actor(1).opacity = 0;
$gamePlayer.refresh();

$gameActors.actor(1).isTransparent() = true;
$gamePlayer.refresh();

$gameActors.actor(1).visible = false
$gamePlayer.refresh();

$gameActors.actor(1).setBlendColor([0, 0, 0, 0]);
$gamePlayer.refresh();
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,180
Reaction score
15,543
First Language
English
Primarily Uses
RMMV
Do you NEED to do this in a script command?


Just use the Change Actor Images command (I think it's on tab 3) to set the actor's map sprite to none.  And use the same command to set it to the correct sprite afterwards.


If you NEED to do it in a script command, try this:

Code:
$gameActors.actor(1).setCharacterImage('',0);
$gamePlayer.refresh();
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,635
Reaction score
1,457
First Language
French
Primarily Uses
RMMV
Do you NEED to do this in a script command?


Just use the Change Actor Images command (I think it's on tab 3) to set the actor's map sprite to none.  And use the same command to set it to the correct sprite afterwards.


If you NEED to do it in a script command, try this:



$gameActors.actor(1).setCharacterImage('',0);
$gamePlayer.refresh();

I thought there, but I'm afraid that performance suffers, because my actor(1) image file weighs about 2MB.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,180
Reaction score
15,543
First Language
English
Primarily Uses
RMMV
Images stay cached, so it shouldn't affect performance.  If you have a performance issue with the event, show us a screenshot of the event.  Using the event command does exactly the same as the script I gave you, so there should be hardly any performance difference at all.
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,635
Reaction score
1,457
First Language
French
Primarily Uses
RMMV
Images stay cached, ....

ok 


I was not certain that the engine refresh the picture, or taking the it in the cache.


I will try this


$gameActors.actor(1).setCharacterImage('',0);
$gamePlayer.refresh();


tanks you friend
 

Latest Threads

Latest Posts

Latest Profile Posts

My new 49" monitor has been dispatched from the warehouse. Will it arrive tomorrow? The day after? I love that we can track packages now, even if it does only tell me when it's left that end and when it's arrived at the local centre. As long as it doesn't end up in Melbourne again, which has happened before ...
My friend's doing a surprise stream of my game Origin Hunt on Twitch here ! Feel free to stop by :yhappy:
Me, designing it a long time ago: Having an optional boss fight as a random chance to trigger when you fish in a certain spot with a certain type of bait is fun! Cool idea!
Me, trying to playtest everything again: oh god just let me see the boss, my bag is so full of fish!
both love and pain have no boundaries

Forum statistics

Threads
117,222
Messages
1,105,622
Members
153,369
Latest member
Marvomix
Top