Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,636
Reaction score
1,459
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,636
Reaction score
1,459
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
941
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,636
Reaction score
1,459
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,647
Reaction score
15,743
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,636
Reaction score
1,459
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,647
Reaction score
15,743
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,636
Reaction score
1,459
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

Surgically removing people's faces and grafting them on to other people is kind of fun.

(editing character art busts for my game)
I think sleep is like a foreign language to me.
I really love it when major blocks preventing me from going all out in game design get shattered.

Like finally developing a fully functioning Technical Machine system where certain characters cannot learn certain moves.

You have no idea how much that helps me.
Streaming some game development! Feel free to drop by!

Forum statistics

Threads
118,818
Messages
1,118,933
Members
155,995
Latest member
arthurx6465
Top