Show Picture Help

abishaigames1

Villager
Member
Joined
May 9, 2016
Messages
27
Reaction score
0
First Language
English
Primarily Uses
I'm trying to do two things, and I can't get either to work.


First, highlight interactive items on the map. My plan for this is to run a parallel event which checks the player's x and y coordinates and if those coordinates are equal to a space next to an intractable event, show a picture at the event (I haven't decided what yet, let's say a white square around the interactive tile). I could also use a player touch event next to the interactable item.


Second, black out rooms the player isn't in without removing those rooms from the map. Here I just planned to use player touch events at doorways which would fade in a black picture over the room you were leaving and unfade the black picture over the room you where entering. 


My problem for both of these is the same. I can't figure out how to set where the picture shows up on the map. I've tried using Direct Designation and Designation with Variables and neither has any effect (regardless of the numbers or variables I put in). I have tried adding a move picture right after show picture, and nothing happens. What am I missing? 
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
1. I would use this plugin and set the common event to show the highlight. Then on the map set the region around the item. I used a similar concept in Ace, and set the region in say a 3-4 tile radius around the item. I will say, I haven't used that plugin, but based on the description, it should do what you need.


2. I'm really not sure how best to achieve this, so I'll let others comment on it.
 

abishaigames1

Villager
Member
Joined
May 9, 2016
Messages
27
Reaction score
0
First Language
English
Primarily Uses
1. I would use this plugin and set the common event to show the highlight. Then on the map set the region around the item. I used a similar concept in Ace, and set the region in say a 3-4 tile radius around the item. I will say, I haven't used that plugin, but based on the description, it should do what you need.


Thanks for the quick response. I do have the plugin, and I could use that as well as either the x, y designation or just player touch, but what do you mean by 'show highlight'? I don't have any problem getting a picture to appear on the map when I step in a certain place, my issue is that the picture always appears in the left hand corner of the screen - either starting from the pictures top left or the pictures top center depending upon what I chose as the origin point, and I can't have the picture move or show up anywhere else. I feel like this should be accomplished with the direct designation or variable designation features, but neither of those have any effect. I can set them to whatever I want and the picture still only shows in the top left corner. 
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
Not sure if it's what you've done, but when you use the direct designation, you need to put a pixel value in, not a tile value. So if I needed my top left corner to be at tile 10, 5 I would need to multiply those numbers by 48 to get my pixel value. The X would be 480 and the Y 240. I just tested this out and it worked perfectly, so if it still doesn't work for you, I guess I'm completely misunderstanding and perhaps we'll have to wait for someone else to help you.
 

abishaigames1

Villager
Member
Joined
May 9, 2016
Messages
27
Reaction score
0
First Language
English
Primarily Uses
Not sure if it's what you've done, but when you use the direct designation, you need to put a pixel value in, not a tile value. So if I needed my top left corner to be at tile 10, 5 I would need to multiply those numbers by 48 to get my pixel value. The X would be 480 and the Y 240. I just tested this out and it worked perfectly, so if it still doesn't work for you, I guess I'm completely misunderstanding and perhaps we'll have to wait for someone else to help you.


No, thanks, that was exactly what I didn't know - Direct designation as pixel value worked just fine and solves my immediate problems. I do have a further question though since you understand this. How does designate with variables work? I set up an event to track the x and y variables of my character, and set the picture to appear based upon those variables, and it still just appeared in the top left. What am I missing there? 


Thanks again.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
those variables, and it still just appeared in the top left. What am I missing there? 
The same thing - picture coordinates are in pixels, but the game coordinates (gotten from control variables) are grid numbers.


You need to multiply it with the tile size to get the pixel numbers
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,351
Reaction score
8,532
First Language
English
Primarily Uses
RMMV
Well, I'm experimenting with this trying to figure it out, as I've never really used these settings before. Because of that someone might have a better solution. It seems that the variable designation is also pixels, so you will still need to multiply the tile space by 48. Thankfully the variable settings have a multiply function, so just before you use the show picture command, you can control the variable's value (the ones holding the map positions) by multiplying it by 48.


(Also, you don't need to quote someone if they were the last post before your response.)
 
Last edited by a moderator:

abishaigames1

Villager
Member
Joined
May 9, 2016
Messages
27
Reaction score
0
First Language
English
Primarily Uses
The same thing - picture coordinates are in pixels, but the game coordinates (gotten from control variables) are grid numbers.


You need to multiply it with the tile size to get the pixel numbers


Cool. What's the best way to accomplish this? 
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
another control variable command on the same variable to multiply it with 48 (for both coordinates).


MV tiles are 48x48 pixel (unless you changed the grid or are using a different maker)
 

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