Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,635
Reaction score
1,458
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,458
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,635
Reaction score
1,458
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,738
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,458
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,738
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,458
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

Marketing seems to be about reducing dependence on luck to sell a product, as well as expanding the number of avenues in which luck can play a role in selling a product.
So, I've been wanting to do this randomized logic puzzle in my game for years now. I finally figured out how to do it by using arrays and a few small script calls. It's based on the Einstein Fish Puzzle! :D Though, I have no idea how to actually have the player put in answers.... might start a thread about it.

The projectiles shown in this video are as follows:
1, Basic Triple
2, 30-Degree Arc
3, Randomized Blast Wave
4, 8-way
5, 8-way Double
6, 8-way Slowness
7, 120-Degree Arc Repetitive
8, Projective Triple
9, Split 8-way
10, 2-way Split Randomized Arc
11, HP-MP Split Arc
12, Split Laser
13, Shock
14, Cosine
Drop shadows and water reflections tests in RPG Maker VX Ace


BgI3F80.png
I'm doing a fairy tale project Little Red Riding Hood and the Woodsman. I'm almost done with the demo in my native language and I intend to make a demo version in English as well. I'm just going to use the translator because I don't know the pronunciations very well, I only know how to say "Hey" and nothing else.. :kaoswt2:

Forum statistics

Threads
118,620
Messages
1,117,395
Members
155,705
Latest member
Steve7654
Top