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
596
Reaction score
266
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
32,934
Reaction score
8,257
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
596
Reaction score
266
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
94
Reaction score
328
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 Profile Posts

Figured I would start posting what I am working on here. Anyways, a quest system plugin I have been working on:
20mgjmZ.png


What features would yall like to see in a quest system?
Playing my game to improve my game. (Totally not procrastinating)
Hope he recovers fast :|
Looks like it's functional:

Forum statistics

Threads
112,502
Messages
1,068,743
Members
146,176
Latest member
MissOclock
Top