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
320
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,293
Reaction score
8,364
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
320
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
348
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

I'm thinking about opening a "game in development" thread, though i'm not entirely sure yet. It's still really early in development, and most i have to show are assets or really chaotic map WIPs. There is a lot of story +the world itself though, and i struggle with converting all of my notes into readable text, and a thread might help...?
I see a button in a game, I press it. Cannot resist the temptation even if I know it's a trap.
There's a different game over screen for each of the 4 endings in Forest Star (my Touch the Stars game jam entry). Have you seen this one? :wink:
PartyGameOver.png
So many ideas, so little energy.

Forum statistics

Threads
113,590
Messages
1,076,059
Members
147,586
Latest member
AnitaDazi
Top