How to keep a picture at a fixed coordinate?

booooop

Villager
Member
Joined
Jun 15, 2019
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
Hello

I have an event that displays a picture, however is there a way to keep it at a fixed coordinate on the map instead of having it move around with the screen/player?

Thanks
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
Hello and welcome!
Try to create a map event in a parallel process that constantly calls the image to its position.

Example:
Code:
◆Control Variables:#0019 = Screen X of This Event
◆Control Variables:#0020 = Screen Y of This Event
◆Show Picture:#20, Picture, Center ({#0019},{#0020}), (100%,100%), 255, Normal
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,346
Reaction score
8,388
First Language
German
Primarily Uses
RMMV
parallel processes add to lag, they should only be used if absolutely neccessary.

but to give a better option we would have to know what that picture is and what function it has on that map - each of the three or four possible solution has other advantages and disadvantages.
 

Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
680
Reaction score
321
First Language
PT-BR
Primarily Uses
RM2k3
I just showed the logic, in general Pictures work differently compared to previous versions.
I ran the test on a simpler computer, and kept it between 58 and 60 fps.

But if it is the case it would be enough to do as in previous versions, create a new active page for a Switch (Normal) that just moved the Picture:
Code:
◆Control Variables:#0019 = Screen X of This Event
◆Control Variables:#0020 = Screen Y of This Event
◆Move Picture:#20, Center ({#0019},{#0020}), (100%,100%), 255, Normal, 1 frame
Disable the "Wait" checkbox, otherwise the image will be shaking as the player walks.
 

SoftCloud

Aspiring Game Alchemist
Veteran
Joined
Nov 28, 2018
Messages
98
Reaction score
354
First Language
English
Primarily Uses
RMMV
If interested in using plugins, utilizing a parallax plugin such as this can allow you to bind pictures to the map. It's fairly simple to use. If you don't want to deal with figuring out image coordinates you could pair it with a mapshot plugin. This way you can take a perfectly sized mapshot/screenshot of your map. Use an image editing program, position your image, hide the 'map image' layer and save it in your pictures folder. Beyond setting up the initial moment you need the image to be locked into place you won't need parallel processing event.
 

Latest Threads

Latest Posts

Latest Profile Posts

I spent the past couple of days transferring my RM2K3 project over to RMMV. I upscaled everything 3x and it looks so cute I can't T_T
Small update on my random sprites sheet :kaoswt2:
cfcQKj8.png


Here's Azrael sprite with the fire weapon, hope it came out good.
A13774F4-298B-4F4D-B639-E6921E49FCC2.jpeg
Art test for a victory title screen change

Forum statistics

Threads
113,760
Messages
1,077,267
Members
147,797
Latest member
dustoo
Top