Custom object manipulation

Charles2020

Veteran
Veteran
Joined
Feb 24, 2020
Messages
31
Reaction score
1
First Language
English
Primarily Uses
RMMV
Hi guys

Is there a way or code to manipulate a custom object (meaning not a tileset)

For example, if switch A turned off, there is no building but switch A turned off, there is a building (as an object, not picture). See the attached

The only way I can think is using 2 maps and switch but OOP JS is pretty powerful

Can anyone shed some light or idea on this issue ?

Thanks
 

Attachments

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,141
Reaction score
12,415
First Language
English
Primarily Uses
RMMV
I guess you mean if switch A is turned ON, there is a building.

Try my tile changer:

If you have a large area or a complicated area (different tiles, different layers), it's easier to have a second map with the objects drawn on it that you want to appear on your main map.

Instead of turning a switch on to make the building appear, just run the plugin command to copy the tiles from the other map.
 

glaphen

Veteran
Veteran
Joined
Jan 13, 2019
Messages
326
Reaction score
120
First Language
English
Primarily Uses
RMMV
You say it's not a tileset, then is it an event? Just make page conditions, otherwise turn the building into an event with page condition switch. If it's some object made with javascripting then you should have someway to access it and a parallel at map start with conditional branch if switch on obj.visible = true/false; would probably work.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,087
Reaction score
1,040
First Language
Spanish
Primarily Uses
RMVXA
short answer, yes.

long answer:
-code a new layer on the map.
-load a sprite object.
-tie that sprite to the layer.
-make it invisible.

if you don't want to use pictures as in *pictures* pictures, you can copy the image-loading capabilities of the Pictures object, and control it separately through a new layer: tie the layer to the map, and use an event to read it at event level.
since by default the events and the map are connected, you can tap into that from one end, and from the other, tap into your new layer.
 

Oatilis

Veteran
Veteran
Joined
Mar 16, 2016
Messages
30
Reaction score
8
First Language
Hebrew
Primarily Uses
Create a sprite of the house.
Create an event and set the image to the house sprite.
Set a condition for the event (some switch, variable, etc).

I wouldn't go around changing the entire tileset if I could help it. Also don't duplicate maps for this kind of changes, it will make your life harder with any changes you want to make later.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Playtesting for Battle Castle is done, demo time for me was roughly 6 hours and 20 minutes. I'm going to pass it on to a few friends first, and after getting some feedback will be posting an official topic.
There's another Humble Bundle available now for RPG developer assets, this time focused somewhat more towards pixel art style games.
Ive got a long lost half uncle. Thats real cool.
I forget what is bumping rule in this forum. Is anyone know? Thank you.
BCj
Ew, why does my blogpost on the rpgmaker.net site look like a garbled mess? Are html codes disabled or something?

Forum statistics

Threads
97,910
Messages
947,784
Members
129,150
Latest member
Shinn86
Top