Vlue's pop-up script location issue

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Vlue's pop-up window script (found here) appears to allow for the location of the pop-up to be specified in the script call as indicated in the header instructions line 7. This is good, because I would like the pop-up to be near the tile where the item is found. In testing, that does not appear to be the case.

The default position is central, both vertical and horizontal.
However, no matter what x,y I put in the script call, all it does is appear extreme left horizontally and central vertically.
It may be that I have misinterpreted the way to do the script call. Here is what I have put
pop_up(['Some random loot found!'], 11, 2)

Have I got an incorrect script call, or is there an issue with the script itself?
Thanks.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
The coordinates are screen coordinates, not tile coordinates, so 11, 2 would normally be in the top left corner. However, you've left out the timer argument, so the 11 is going into the timer, the 2 going into the x coordinate (which is why it's on the far left), and 0 is going into the y coordinate (which is why it's centered vertically, as that's the default if the y value isn't entered).
 
Last edited:
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
@Shaz I had wondered about that. Putting in 300, 100 moved the window about one third of the way from the left edge, but putting in 400, 100 or 500, 100 didn't push it any further right. It was still central vertically. Changing the y coordinate to 500, 2 put it back over on the left edge again.

I am confused.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You need to add the timer argument.

pop_up(['Some random loot found!'], 180, 400, 100)
 
  • Like
Reactions: Kes

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,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top