Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [Request / Listing] Scrolling Hud.. (Game Maker 6.1) FIXED  (Read 5839 times)

0 Members and 1 Guest are viewing this topic.
[Request / Listing] Scrolling Hud.. (Game Maker ...
« on: April 14, 2006, 02:57:43 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7001
How can I make my huds scroll with the window when Link moves?  I know I can use drawsprite blah blah blah but i've already set all by huds up as objects and I don't want to change them.  So how can I get the window to follow Link..but have the Huds scroll with him?
« Last Edit: February 08, 2012, 10:16:14 am by Niek »
Logged



i love big weenies and i cannot lie
Re: Scrolling Hud.. (Game Maker 6.1)
« Reply #1 on: April 14, 2006, 03:12:49 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
x=view_xview+whatever
y=view_yview+whatever

usually there's a subtle lag when the view moves when using objects
Logged
Re: Scrolling Hud.. (Game Maker 6.1)
« Reply #2 on: April 14, 2006, 03:16:26 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7001
it isn't working..they just sit there =(
Logged



i love big weenies and i cannot lie
Re: Scrolling Hud.. (Game Maker 6.1)
« Reply #3 on: April 14, 2006, 03:23:50 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
is it in the step event?
Logged
Re: Scrolling Hud.. (Game Maker 6.1)
« Reply #4 on: April 14, 2006, 03:25:07 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7001
umm no, lemme go changify that..

EDIT: Ok, they scroll now but they're constantly creating themselves and leaving behind a trail of hud objects O_o
« Last Edit: April 14, 2006, 03:26:57 pm by MasterGohan Zero »
Logged



i love big weenies and i cannot lie
Re: Scrolling Hud.. (Game Maker 6.1)
« Reply #5 on: April 14, 2006, 03:27:57 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2245
must be something to do with the rest of your code
Logged

King Tetiro

Leader of Phoenix Heart
Re: Scrolling Hud.. (Game Maker 6.1)
« Reply #6 on: April 14, 2006, 03:34:04 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3549
i make a controller for everything that's not to do with Hero/Enemies/Etc and I did the draw sprites in the draw event and it worked, if you like, if you send it to me, I'll see what the problem is.
Logged
  • Phoenix Heart
Re: Scrolling Hud.. (Game Maker 6.1)
« Reply #7 on: April 14, 2006, 03:36:59 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7001
i make a controller for everything that's not to do with Hero/Enemies/Etc and I did the draw sprites in the draw event and it worked, if you like, if you send it to me, I'll see what the problem is.

well thats the thing, i'm not using sprites, i'm using objects.  My huds work by changing the image_index when you select an object to be equipped and then it checks to see what image_index is set and uses a weapon based on that.  So to change my engine to work on sprites would be a bit of a pain...
Logged



i love big weenies and i cannot lie

King Tetiro

Leader of Phoenix Heart
Re: Scrolling Hud.. (Game Maker 6.1)
« Reply #8 on: April 14, 2006, 03:39:48 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3549
Yeh I recommend you use sprites. They take alot of hard work BUT IT'S WORTH IT IN THE END!
Logged
  • Phoenix Heart
Re: Scrolling Hud.. (Game Maker 6.1)
« Reply #9 on: April 14, 2006, 03:44:51 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7001
oh oh oh, I got it =)  I put a "jump to position" command on the step event and set the coordinates to view_xview + blah and view_yview + blah.  Thanks for your help guys..never would have thought of the step event on my own O_o
Logged



i love big weenies and i cannot lie

King Tetiro

Leader of Phoenix Heart
Re: Scrolling Hud.. (Game Maker 6.1) FIXED
« Reply #10 on: April 14, 2006, 04:15:11 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3549
Your welcome (I'll when my screenshots are done, i'll send you a pic of my game)
Logged
  • Phoenix Heart
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.043 seconds with 59 queries.

anything