J
JohnG
Guest
I'm working on a 3-tap golf swing. There are 3 sprites. A bar that depicts power and accuracy. A shot cursor that moves horizontally based on player input (the tap). Finally a marker that indicates where the player set the power. I have all of these sprites mapped to objects that are working perfectly. I can take a shot with varying power and accuracy that can change the flight of the ball.
What I want to do is clean up the display of this shot bar. After the shot is taken, the camera follows the ball and the shot bar stays put and is lost from the view. I have the shot bar reappear at a specified distance beneath the ball once it stops moving.
I want the shot bar to stay at a fixed position at the bottom of the screen and not fall out of view. I have successfully drawn sprites with the Draw GUI event and they appear where desired. The problem with this is I can't interact with the sprites because they aren't objects.
I have tried just putting the shot bar on the GUI level and making the shot cursor and marker appear as objects above it. But this has been futile (I know the GUI is supposed to be the top layer). I have searched for ways to make objects appear above the GUI layer but have not been able to find any solutions. I think I am stuck with using objects that I will have to manually place and move.
Does anyone know a clear cut way to make objects appear above the GUI? Has anyone written a simple script for keeping objects in a fixed position? For visual reference, I've attached a picture of the shot bar, shot cursor and marker.
What I want to do is clean up the display of this shot bar. After the shot is taken, the camera follows the ball and the shot bar stays put and is lost from the view. I have the shot bar reappear at a specified distance beneath the ball once it stops moving.
I want the shot bar to stay at a fixed position at the bottom of the screen and not fall out of view. I have successfully drawn sprites with the Draw GUI event and they appear where desired. The problem with this is I can't interact with the sprites because they aren't objects.
I have tried just putting the shot bar on the GUI level and making the shot cursor and marker appear as objects above it. But this has been futile (I know the GUI is supposed to be the top layer). I have searched for ways to make objects appear above the GUI layer but have not been able to find any solutions. I think I am stuck with using objects that I will have to manually place and move.
Does anyone know a clear cut way to make objects appear above the GUI? Has anyone written a simple script for keeping objects in a fixed position? For visual reference, I've attached a picture of the shot bar, shot cursor and marker.
Attachments
-
40 KB Views: 6