$gameScreen.showPicture + Variable (Help)

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
Hi guys.


What am doing bad with this code ? !!


Am try many test and search many forum


// Get the level inside variable 111 (= ex:3)
var LV = $gameVariables.value(111);
// Add string to LV so suppos now is = "iteme1-3"
var LV = "iteme1-" + LV;

// show picture withe the good name "iteme1-3"
$gameScreen.showPicture($gameVariables.value(119), LV, 1, $gameVariables.value(114), $gameVariables.value(115),
100, 100, 255, 0)




The LV = the name of the file.


All my file are named like this


iteme1-1, iteme1-2,  iteme1-3, ........


Tank you a lot
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
What happens when you try it?  Do you get an error message?  What does it say?  Do you have developer tools turned on?  What's in the console?  Do you know for a fact that variables 111, 114, 115, 119 and LV contain what you THINK they contain?  Where are you running it from - is this a script call within an event, or have you added it to one of the script classes - if so, which one?


Create an event that does a Show Picture command with the values you'd like to have in your script call, then in Game_Screen.prototype.showPicture add some code to report what each of the arguments contains.  Could be as simple as misunderstanding one/some of the parameters (eg - scaleX could be a fraction, with 1 being 100%, while you've got 100 in your call).
 
Last edited by a moderator:

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
What happens when you try it?  Do you get an error message?  What does it say?  Do you have developer tools turned on?  What's in the console?  Do you know for a fact that variables 11, 114, 115, 119 and LV contain what you THINK they contain?  Where are you running it from - is this a script call within an event, or have you added it to one of the script classes - if so, which one?
ok I hate myself.
I think I am ready to sleep.

I fix the name that was not iteme1- but item1-


Tank you thoe code are ok.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV

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

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top