Hi there,
to be honest I really start to hate Scaleform for more than one reason, so I hope to find some assistance with my current problem. I am trying to build a simple inventory bar at the bottom of the screen (like most point&click adventures). So far I managed to get a basic mouse interface via Scaleform and it's working ... except for one thing:
There is no hit detection for HUD elements, whenever I click a button I also click inside the game world.
I read about this issue in several threads:
http://forums.epicgames.com/threads/...uring-Gameplay
http://forums.epicgames.com/threads/...nd-UI-for-RTS)
So I came up with the idea to add a RollOver/Out event for the movie clip containing all my inventory elements (background, buttons, etc.):
While I solve the inital problem with this, every CLIK element stops working. Since I am not really familiar with Flash and ActionScript, I really hope someone can explain me why this is happening and how I can fix it.
Thank you!
to be honest I really start to hate Scaleform for more than one reason, so I hope to find some assistance with my current problem. I am trying to build a simple inventory bar at the bottom of the screen (like most point&click adventures). So far I managed to get a basic mouse interface via Scaleform and it's working ... except for one thing:
There is no hit detection for HUD elements, whenever I click a button I also click inside the game world.
I read about this issue in several threads:
http://forums.epicgames.com/threads/...uring-Gameplay
http://forums.epicgames.com/threads/...nd-UI-for-RTS)
So I came up with the idea to add a RollOver/Out event for the movie clip containing all my inventory elements (background, buttons, etc.):
Code:
inventory_mc.onRollOver = function() { ExternalInterface.call("HitInventory", true); } inventory_mc.onRollOut = function() { ExternalInterface.call("HitInventory", false); }
Thank you!
Comment