Chaos Project

RPG Maker => General Discussion => Topic started by: Andreavnn on April 25, 2012, 06:09:12 pm

Title: [Resolved]New HUD idea
Post by: Andreavnn on April 25, 2012, 06:09:12 pm
I remember once seeing a LOZ game that had a sundial in the HUD anyone remember if that is true or if I am just crazy? :wacko:

*EDIT* Anyways, It does matter what I was wanting is to see what they did. I am thinking about making a new part to my HUD for night and day time. It would be next to the HUD or on top the the screen and would use events to check what "time" it is and the picture would change according. This is what I wiped up at work with MS paint, mind you I will make a much better version this weekend.

Morning
Spoiler: ShowHide
(http://img94.imageshack.us/img94/69/morningv.jpg) (http://imageshack.us/photo/my-images/94/morningv.jpg/)


Daytime
Spoiler: ShowHide
(http://img26.imageshack.us/img26/7944/daytimer.jpg) (http://imageshack.us/photo/my-images/26/daytimer.jpg/)


Evening
Spoiler: ShowHide
(http://img10.imageshack.us/img10/7393/eveningp.jpg) (http://imageshack.us/photo/my-images/10/eveningp.jpg/)


Night
Spoiler: ShowHide
(http://img210.imageshack.us/img210/5006/nightmm.jpg) (http://imageshack.us/photo/my-images/210/nightmm.jpg/)
Title: Re: Legend of Zelda
Post by: Blizzard on April 25, 2012, 06:37:06 pm
Majora's Mask.
Title: Re: Legend of Zelda
Post by: Zexion on April 25, 2012, 06:39:06 pm
you mean majora's mask? or a fan game?

dam he beat me too it lol
Title: Re: New HUD idea
Post by: Andreavnn on April 25, 2012, 06:40:04 pm
Thanks Blizz, I couldn't remember. I didn't play Majora's Mask for too long it wasn't my cup of tea.

*EDIT*  Thanks Zexion :)
**EDIT**

Here is the common event I setup and a par. process on each outside map will call it.

Spoiler: ShowHide
(http://img17.imageshack.us/img17/1189/74785395.png) (http://imageshack.us/photo/my-images/17/74785395.png/)


When I load the game though the picture pops up once then disappears. Any ideas what I am doing wrong?

Title: Re: New HUD idea
Post by: Landith on April 25, 2012, 11:06:26 pm
Check to make sure you don't have any events that remove picture 1... Also make sure you erase the picture after it becomes night otherwise I'm not sure it will update properly. It's also a good idea to have the pictures separate so it's not show picture 1 then show picture 1 but show picture 1 then show picture 2. Also it might be continually trying to update it, so add a 'exit event process' at the end of the event calling the common event.
Title: Re: New HUD idea
Post by: Andreavnn on April 25, 2012, 11:18:09 pm
I created the par. process on the map and when I hit start new game I get an error

Par. Process
Spoiler: ShowHide
(http://img689.imageshack.us/img689/2917/62520593.png) (http://imageshack.us/photo/my-images/689/62520593.png/)


Common Event
Spoiler: ShowHide
(http://img208.imageshack.us/img208/5830/62103406.png) (http://imageshack.us/photo/my-images/208/62103406.png/)


Error
Spoiler: ShowHide
Script 'ATES' Line 353: NoMethodError occurred.
undefined method 'day' for #<Game_ATES;0x8xbfafa8>
Title: Re: New HUD idea
Post by: diagostimo on April 26, 2012, 02:37:26 am
instead of checking that its  ATES.day or ATES.night, why dont you check that the night switch is on that you use for your enemies? im not sure but maybe theres conflict because its trying to check it twice with both parrallel processes, heres an example of what i mean:

condition night switch == on
  erase picture1
  show picture2: night
  exit event
else
  erase picture2
  show picture1: day
  exit event
Title: Re: New HUD idea
Post by: Andreavnn on April 26, 2012, 10:57:14 am
@siagostimo I don't get the error anymore, but it only displays the night graphic and when the DSWITCH turns on the image doesn't change. :( I have it setup like this.

Spoiler: ShowHide
(http://img521.imageshack.us/img521/1250/39763372.png) (http://imageshack.us/photo/my-images/521/39763372.png/)


*EDIT* That image is wrong, I fixed it. But not only the day image will show not the night, it flashes once when the game starts.
Spoiler: ShowHide
(http://img692.imageshack.us/img692/834/93569067.png) (http://imageshack.us/photo/my-images/692/93569067.png/)
Title: Re: New HUD idea
Post by: Vexus on April 26, 2012, 02:25:40 pm
Remember if there is already a picture with tag 1 showing on the map another picture with tag 1 won't show.
Title: Re: New HUD idea
Post by: Andreavnn on April 26, 2012, 03:59:28 pm
I edited the event and fixed the tags, still same problem.  :facepalm:
Title: Re: New HUD idea
Post by: diagostimo on April 26, 2012, 04:10:23 pm
it should be like so:
condition night switch == on
  erase picture1
  show picture2: night
  exit event
else
  erase picture2
  show picture1: day
  exit event
see that you erase pic 1 when pic 2 is shown, then you erase pic 2 when pic 1 is shown, if you want a picture to be constantly displayed then theres no need to delete it in the same condition, also i would test it withouth the exit event
Title: Re: New HUD idea
Post by: Vexus on April 26, 2012, 04:13:30 pm
Well erase event will "remove" the event until you re-enter the same map again, that could be your problem.
Title: Re: New HUD idea
Post by: Andreavnn on April 26, 2012, 04:55:43 pm
Okay, thanks guys I will look into it when I get home from work tonight. The weekend is so close!

*EDIT* Thanks Vexus and Diagostimo +1 everything works just fine. Yup, edited my images a little bit to clean them up. Will still need new ones before release. Now if I can just edit ATES so there are switches for morning and evening I can add graphics for those too. Also edit the how long each of those events last too like night and day. :)
Title: Re: [Resolved]New HUD idea
Post by: diagostimo on April 27, 2012, 04:36:24 pm
try this:
Spoiler: ShowHide
(http://img404.imageshack.us/img404/6220/ates.png)

you can also use  $game_system.ates.time.min == to check the mins so if you wanted to check if its 10:30 you would do the following:
condition:$game_system.ates.time.hour == 10
  condition:$game_system.ates.time.min == 30
    @>
  branch end
  @>
branch end
you can change the hours to whatever you want thats just an example :)
Title: Re: [Resolved]New HUD idea
Post by: Andreavnn on April 27, 2012, 04:47:18 pm
AWESOME! Thanks diagostimo!