Help with Character HUD

Have any questions or problems in making your game, subscribing and/or using our software? Post here.
Forum rules
Make sure you are using the newest version. This can be downloaded at the top of the site via the "downloads" link.

Use a very good subject. "Problem" or "Help" are unacceptable titles.

Use the search feature before posting a question, as the answer is probably already here.

Subscript out of range error 9: This is a generic error, and we'll need way more information than that to figure out the problem. If you get this, strongly consider following the instructions of submitting your project through the Submit Bug feature within the editor.
Junior Member
Joined: Tue Jul 21, 2015 1:17 am

Help with Character HUD

Postby nwong1050 » Sun Dec 24, 2017 1:31 am


I'm creating a turn based game and I want to be able to select an actor and have buttons show up near their position that indicate various actions like "move" or "attack".
It's important that the buttons show up NEAR THE SELECTED ACTOR, so I ended up putting them in the character HUD.

But for some reason, static sprites in the Character HUD aren't selectable. When I put the same fields in the main HUD, they work as intended, but when in the Character HUD, they will ignore the mouse.

Is this an intended aspect of the engine or am I missing something? Is there a workaround?


User avatar
001 Support
Joined: Wed Feb 28, 2007 1:50 am
Location: Alberta, Canada

Re: Help with Character HUD

Postby Mr.Numbers » Sun Dec 24, 2017 11:07 am

There is no way to have selectable fields on a character interface unfortunately... There IS however a workaround for this! What you can do is position your menu as if it was on the character interface (Offsetting it from the center point) then using a little math and the "Pan Interface" event you can place the interface anywhere on the map.

The math for it is fairly simple. First you need to get the center screen position, then subtract the actors X/Y position from that value.
X = ((Screen.X1 + Screen.X2) / 2) - Actor(SELECTED_ACTOR).X
Y = ((Screen.Y1 + Screen.Y2) / 2) - Actor(SELECTED_ACTOR).Y

Use-values completely untested but probably should work. Early morning and tired so my maths might be off :P
Please do not PM me with Engine 001 related questions, rather post on the forums. ;)

Return to Technical Support Questions

Who is online

Users browsing this forum: No registered users