After the completion of Callisto, I am into development on the next game Stellar Crossroads. As part of the early development work, I am attempting to create a little exploration / mining mini game and need some assistance with the Ren'Py interface. The specific items where I require assistance relates to mouse position and mouse cursor.
The screen for the mini game is to have a portion (square about 75% of the full screen height on the left side of the screen simulating a x,y exploration grid. As part of this exploration game I want the player to click somewhere in this square to indicate where they would like to drill an exploration hole. When they click, the x,y coordinates are stored as two variables such that I can calculate a grade at that particular position.
Hence I require assistance with the following:
- Having a certain portion of the screen clickable, corresponding to the exploration grid. (say 800 x 800 pixel square on 1080p screen).
- Having the cursor change from the default to say crosshairs, when the mouse is within this zone.
- On clicking, returning the x,y coordinates within this exploration location to a X coordinate variable and a Y coordinate variable.
There will be a bunch of other code in the background, just need some assistance with the Ren'Py interface aspects.
The screen for the mini game is to have a portion (square about 75% of the full screen height on the left side of the screen simulating a x,y exploration grid. As part of this exploration game I want the player to click somewhere in this square to indicate where they would like to drill an exploration hole. When they click, the x,y coordinates are stored as two variables such that I can calculate a grade at that particular position.
Hence I require assistance with the following:
- Having a certain portion of the screen clickable, corresponding to the exploration grid. (say 800 x 800 pixel square on 1080p screen).
- Having the cursor change from the default to say crosshairs, when the mouse is within this zone.
- On clicking, returning the x,y coordinates within this exploration location to a X coordinate variable and a Y coordinate variable.
There will be a bunch of other code in the background, just need some assistance with the Ren'Py interface aspects.