Rearranged - HUDTiles

lazlow3

New member
I rearranged the HUD tiles so I could design my HUD border in a more visual way and I remapped all of the tiles in the 'Tiles' tab of 'HUD & Boxes' to correspond to the new layout. When I run my game any text that generated from HUD Elements using Type 2: Text works fine but the variable text for myMoney seems to be pulling from the old number location in the HUDTiles.bmp so what should be "0" is displaying the top left of corner of my HUD. I changed the label text from 'CASH' to 'CASH012' to show that the text value is pulling from the correct address from the HUDtiles.bmp.

My guess is that the variable code must be hard coded in a script to pull that address. I have dug through the scripts but can't seem to find where this setting is set. Would anyone know where the variable code is set or should I just put the tiles back to their old location and move on? Thanks.

[media]https://drive.google.com/open?id=1sy8gKRwv5j69V3OmNimZUFMgZL5wP-pT[/media]
[media]https://drive.google.com/open?id=12dquzepnYuNCI8kZqUXng-yVt9UHVH3i[/media]
 

lazlow3

New member
I was able to recreate it using the Adventure module tutorial. I copied the '0' to empty space between the period and colon. On the Tiles tab assigned _0 to the new address of 0xF5. Made a quick scribble in the old '0' address spot next to the '1'. Ran the game and the key counter displayed the scribble that I drew. Pick up a key and it incremented to '1'.

I can just put my tiles back as right now that is the quicker fix.
 

lazlow3

New member
This is using my adventure test from the tutorial, but I was able to recreate the issue.

[media]https://drive.google.com/open?id=1_eL5C0EpCxmrjlNWG3qBbxt0BuHLpgKv[/media]
 

dale_coop

Moderator
Staff member
You right, the numbers for the "number" type elements are hardcoded.
So a good advice is to keep them at their original place ;)
 
Top Bottom