Jonforum

Regular
Regular
Joined
Mar 28, 2016
Messages
1,641
Reaction score
1,479
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

Regular
Regular
Joined
Mar 28, 2016
Messages
1,641
Reaction score
1,479
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
Regular
Joined
Dec 17, 2012
Messages
4,699
Reaction score
947
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

Regular
Regular
Joined
Mar 28, 2016
Messages
1,641
Reaction score
1,479
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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,971
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

Regular
Regular
Joined
Mar 28, 2016
Messages
1,641
Reaction score
1,479
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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,971
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

Regular
Regular
Joined
Mar 28, 2016
Messages
1,641
Reaction score
1,479
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

The X-Mas and ~ all ~ December long Calendar Project seems to bring my machine right to the limit. A very good oportunity to test what my pc can do. Or at which point I should decide to take a step back from filling the rendering program with assets.
The new grafics card and ram do their job well, that's for sure. My own early Christmas gifts were a good investment.
my laptop keyboard gave up, they keep glitching out, it seems like it's time to finally replace them, honestly surprised it lasted this long.
Tiny setback. Turns out my Title Screen image and one of my primary background & avatar images are AI Generated. Glad I went back and checked all my resource links. So I am in hot pursuit of replacement images. Which is fine since I was still missing some images that I need anyway.
Watching Vibrato Chain Battle System is too awesome! watch I wish had this gfx and animation skill to make such game!
Got drawn back by a notification about QPlugins. For those who want the MZ versions I was using, they're on my Github. https://github.com/ImaginaryVillain/QPlugins I literally don't care what you do with them, have fun! :LZSlol:

Meanwhile.. I'm glorying over these 550 new Victorian house models Epic gave me this month. See next post for examples....

Forum statistics

Threads
136,892
Messages
1,271,113
Members
180,669
Latest member
Asier188
Top