Is it possible to control multiple picture IDs in one script call?

Status
Not open for further replies.

Rhino

~Inactive~
Veteran
Joined
Feb 28, 2017
Messages
482
Reaction score
789
First Language
English
Primarily Uses
RMMV
My game uses a lot of pictures, so eventing can get quite messy. I was wondering if there's a way to control multiple picture ids within the same script.
E.g. I wanted to write something like $gameScreen.erasePicture(1, 2, 3); but it only erases 1. Am I writing it wrong or is it just not built to work like this? (I know about $gameScreen.clearPictures(); but it's not quite what I need)

I really want to be able to use multiple picture ids in most of the commands (show, move, tint, erase) so all the pictures can do the same thing at the same time and make it a lot easier to scroll through the event pages, so I hope this is possible!

Thanks!
 

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
Unfortunately, that function doesn't work like that. This would need a plugin.
 

King Gerar

White Wolf
Veteran
Joined
May 15, 2012
Messages
165
Reaction score
212
First Language
Portuguese
Primarily Uses
RMMV
You could take a look this. Perhaps serve for you.
 

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
Oh, there was someone faster then me. xD I just made a small plugin for this as well.
 

Rhino

~Inactive~
Veteran
Joined
Feb 28, 2017
Messages
482
Reaction score
789
First Language
English
Primarily Uses
RMMV
You're both amazing! I was going to write up a proper request, I didn't think anyone would answer it from here. :guffaw: Ahh thank you this is a lifesaver!!

@King Gerar It's working really well for move/tint/erase, but I'm not sure how to do multiple show pictures since each has a different file name. I don't mind if that's not usable though, having the rest is a huge help anyway :D
 

King Gerar

White Wolf
Veteran
Joined
May 15, 2012
Messages
165
Reaction score
212
First Language
Portuguese
Primarily Uses
RMMV
Err... if the files are different, don't worth displaying them using this plugin, because you'll must write all name files on plugin command, is that as laborious as use Show Picture for each image.
Leastwise, I have no idea how make this better. :kaoswt:
 

Rhino

~Inactive~
Veteran
Joined
Feb 28, 2017
Messages
482
Reaction score
789
First Language
English
Primarily Uses
RMMV
Ah it's fine as it is then. Thank you very much for making this plugin! I'll use it well :guffaw:
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,864
Messages
1,017,056
Members
137,573
Latest member
nikisknight
Top