The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Æliath on June 19, 2011, 02:11:53 PM

Title: [Support] Problem HUD
Post by: Æliath on June 19, 2011, 02:11:53 PM
Hello guys :)
I have a problem with my HUD ;D
More than a problem, can not seem to get some things...
Basically, I want by pressing 1, the HUD is displayed with the first hero, with key 2, second, and so on...
I helped to do so?
This is the demo:
http://www.mediafire.com/?yrq5u7slnitiw7a

(Sorry if I did not follow the template, but I did not know if I had to respect him for support ... in this case, I change the topic)
Title: Re: [Support] Problem HUD
Post by: modern algebra on June 19, 2011, 03:47:59 PM
I think you are on the right track. The first thing you will need to do is change the status array so that it also checks for actor.id. You will then need to create an instance variable in your HUD which tracks the ID of the current party member. You can initialize it as 0 in the initialize method and for the purpose of the rest of the post I'll say it's @member_id.

Then, when you retrieve the actor in the update method, you do so through $game_party.members[@member_id].

Now all you need to do is add checks in the update method above what you have now for whether the player has triggered 1, 2, 3, or 4. If 1, change @member_id to 0, if 2, change @member_id to 1, etc... I haven't used YEM Keyboard Input before, but I assume it will let you check for those keys.
Title: Re: [Support] Problem HUD
Post by: Æliath on June 19, 2011, 08:15:10 PM
I think I understood, but doing some attempts I still make mistakes :S

Can you by any chance to make a demo?
Thanks for the answer modern =D
Title: Re: [Support] Problem HUD
Post by: modern algebra on June 19, 2011, 10:17:01 PM
The face won't change since you didn't have that setup yet, but the modifications in the attached demo does cycle to that party member.
Title: Re: [Support] Problem HUD
Post by: Æliath on June 27, 2011, 01:19:45 AM
=)
Practically in the demo you were able to change the HUD to the pressure of numbers?
Title: Re: [Support] Problem HUD
Post by: Æliath on August 30, 2011, 09:42:29 PM
Up Please çç