Need Help w/ Frozen Bottom Gui (Player Can't Walk)

Started by Vault15, Sun 14/10/2012 18:47:49

Previous topic - Next topic

Vault15

I'm working on an RPG and have a bottom bar that is permanently displayed as the player walks around (using smooth scrolling & parallax).

I got it on the bottom by making a huge transparent block (the height of the game screen, 768 pixels). The problem is that the game doesn't let me click anything but the buttons. I can't make the character walk or anything unless I put the Gui at the top. I'm doing something wrong and making it harder than it is I'm sure.

If I set "Clickable" on the Gui as "False" then I have the desired effect where the bottom bar stays visible as I move the character around, BUT I can't click any of the buttons. If I set it as "True" then the only things I can click are the buttons of the Gui and I can't move the player. Hopefully this information is all that is needed for a solution to click.

Any responses are greatly appreciated! I can't continue production until I get past this small, but major, issue.

Slasher

#1
May I ask why you have a screen sized gui simply for some buttons at the bottom of it?

After thought:

If you selected 'pause game when shown' for the gui then the game pauses and you can't do anything else.


Vault15

#2
Quote from: slasher on Sun 14/10/2012 19:01:29
May I ask why you have a screen sized gui simply for some buttons at the bottom of it?

Alright, so I had found an example Gui that was at the top of the screen. I was able to modify it so that it has inventory and menu buttons, but I wanted the Gui at the bottom instead. The only way I found to modify the example Gui so that it was on the bottom was to make the Gui the same height as the screen (it's invisible, but it allowed me to create another bar at the very bottom). I know it sounds ridiculous, but I honestly couldn't figure out any other way.

The Gui says Height: 768, Width: 1024 (completely transparent). I then made a rectangle button and imported the image of the bottom character bar that I want to display at all times in game. How else could I do this without the Gui being the same size as the screen?

Andail

Yes, there is a very simple positioning function in the GUI pane, under "Layout".
You might have to scroll down to the appropriate GUI element in the drop down menu at the top of the GUI pane.

Khris

Sure it does: in the GUI's properties, in the "Layout" category, change the "Top" value. (Make sure the dropdown menu is set to the GUI itself, not one of its controls.)
You can also change a GUI's position in scripts: gGUI.SetPosition(x, y);

Vault15

#5
Quote from: Khris on Sun 14/10/2012 19:16:35
Sure it does: in the GUI's properties, in the "Layout" category, change the "Top" value. (Make sure the dropdown menu is set to the GUI itself, not one of its controls.)
You can also change a GUI's position in scripts: gGUI.SetPosition(x, y);

Thanks to both of you for the info. Wow, I don't know what I did but initially I actually did mess with the "top" value and it didn't change the Gui at all in game. I'll try it again and definitely try the setposition script =]

Edit: I tried it again and the "top" value worked...*sigh* I should have just tried that again.

Slasher

#6
Hi

if you chose to modify the giconbar for example (its defaulted to the top and also shows when mouse moves to the top of the screen.)

1: Position the gui via its events panel: left and top positions to show where you want it be on the screen.
2: If its on all the time you can select 'always shown'. Take a look the gui's events panel on the bottom right of screen.
3: You can manual move a gui by: positioning its x and y. Read the manual regarding gui control functions and properties.

hope this helps


SMF spam blocked by CleanTalk