Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Setting choice location to screen X Y coordinates

A topic by Welcome to Elderfield created 99 days ago Views: 84 Replies: 5
Viewing posts 1 to 2
(1 edit)

Hi there,

In the previous plugin (Choice Pictures), I was able to draw the choice box at a specific X and Y screen coordinate. In this plugin, I am having trouble doing this. 

In the location parameters for the choice, there are plenty of options for alignment and offsets, but these are all relative to the text box position. I am wondering how I would make the choice box appear at a specific screen coordinate (say, X = 500, y = 500 consistently). 

Perhaps this is set somewhere other than the location parameters?

I am also looking to set these coordinates based on variables (so it can be relative to $gamePlayer.screenX() etc.).

Thanks!

Developer

Hi there!

You should be able to set the Choice Window position anywhere on the screen. There is a parameter that allow the choice position be relative to the text window. But you need to set it to true.

Take a look and see if it is true. If yes, set it to false.

Then, just pot the Alignments to Left and Top. With that, the choice window will have it's position according to the Offset X and Y.


I could be missing something, but I'm pretty sure I have all of those same settings and it still isn't working for me. It always just shows the choice box in the top left of the screen as if it were X/Y = 0 (and this happens no matter what I set the offset to, whether a variable or a random number like 1000). 

These are my position settings:

And I run a check before the choice opens to ensure that the variables that I set as the offsets have the values I expect (roughly centered on the screen):


Then, it opens the choice box up in the top left of the screen, as if the offsets were both 0:


Developer

Hmm!!! Thanks for that screenshots, I fixed the issue!

Please download the new version 2.1.4!

Amazing, thanks so much for fixing it! Seems to be working now. 

Developer

Have fun! :)