Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,641
Reaction score
1,474
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,641
Reaction score
1,474
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
945
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,641
Reaction score
1,474
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
45,552
Reaction score
16,443
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,641
Reaction score
1,474
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
45,552
Reaction score
16,443
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,641
Reaction score
1,474
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

Ads.png
Some advertisements for M

And yes kiddos smoking, alcohol and too much coffee or tea are bad for you - but in the 20's we didnt know that yet xD


This is for demonstration of random vocal.
My mom showed up yesterday and I wanted to proudly show off my comic con web page. So of course, it no longer existed. I guess when the 4 day event was over they removed it.
Feeling like a creative Pattato this morning...
Calibrating the timing of dialogue is deffo my new least favorite thing.

Forum statistics

Threads
129,979
Messages
1,206,690
Members
171,207
Latest member
KizuRai
Top