May 09, 2021, 12:51:39 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1] 2

Author Topic: [Client-Side] Constructor HUD  (Read 2074 times)

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
[Client-Side] Constructor HUD
« on: May 02, 2017, 09:23:38 am »

I just took a look at GM and I have know idea what the "execute code" is saying. Can someone do a sprite mod of this?

The New Sentry Hud:
-HUD is located at the top right corner of the screen
-HP bar is vertical and block-like, with a different color
-HP bar has 10 levels instead of a continuous bar. I'm guessing that if 79<x<90, display 8 out of 10 of those bars. x is HP (I have no coding experience)
- "!" flag comes out for 3-5 seconds and flashes when sentry takes damage.

25 may 2010

It took a long time to compile! *BADUM TSS*

« Last Edit: May 20, 2018, 06:59:10 am by PrOF »
Logged

[FR]YB

  • 2013 Haxxy Award Winner
  • *
  • Karma: 28
  • Offline Offline
  • Posts: 642
  • There are 11 people playing holy sh
Re: [WIP][Client-Side] Constructor HUD
« Reply #1 on: May 02, 2017, 12:23:22 pm »

Here's a couple of screenshots

The HUD is blue even when you're red, might want to fix that.

Spazz

  • Seasoned Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 1933
  • Almost too much seasoning.
Re: [WIP][Client-Side] Constructor HUD
« Reply #2 on: May 02, 2017, 12:34:40 pm »

Small overlook was the blue sentry icon UI when players are team red. Unless it was a placeholder, then no issue.
« Last Edit: May 02, 2017, 12:34:52 pm by Spazz »
Logged

<3 Bustatunez

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [WIP][Client-Side] Constructor HUD
« Reply #3 on: May 02, 2017, 12:38:04 pm »

Currently I need to fix:
-Add red UI
-Fix Low Health Sentry warning in aspect ratios other than 16:9
-Slow down the Low health Sentry Warning animation
-Strange ways GM draws the sprite when the scale is x 1, y 1 for some reason
Logged

Pootis Powers

  • Full Member
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 228
  • Soap
Re: [WIP][Client-Side] Constructor HUD
« Reply #4 on: May 02, 2017, 03:51:03 pm »

That look's pretty cool.
Logged
bam shock dodge again wow im on fire total skill.

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [WIP][Client-Side] Constructor HUD
« Reply #5 on: May 02, 2017, 03:53:25 pm »

That look's pretty cool.
And to think that this idea and sprites are from 2010 ^-^
Logged

ZaSpai

  • Ray Bann's Minion
  • *
  • Karma: 14
  • Offline Offline
  • Posts: 2239
  • "Eeh?! We're just allies!"
Re: [WIP][Client-Side] Constructor HUD
« Reply #6 on: May 04, 2017, 06:19:06 am »

I'd suggest adding a conditional to not display the alert :z1: when the autogun is building
Also the alert :z1: panel blocking part of the sentry hud icon :z4:
Logged
Right behind you when you most expect it | classicwell master race

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [WIP][Client-Side] Constructor HUD
« Reply #7 on: May 04, 2017, 06:27:03 am »

I'd suggest adding a conditional to not display the alert :z1: when the autogun is building
Also the alert :z1: panel blocking part of the sentry hud icon :z4:
The second is a proble with different screen resolutions. Works fine in 16:9. Working on it
Logged

Spazz

  • Seasoned Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 1933
  • Almost too much seasoning.
Re: [WIP][Client-Side] Constructor HUD
« Reply #8 on: May 04, 2017, 01:09:43 pm »

Have not tested myself though,

Suggest moving the Exclamation Point either out of the Sentry HUD box, yes it'll take up slightly more space but then there should be less overlapping issues.
Or,
Change the colour scheme from light grey to transparent, dark grey to yellow, and center it
Logged

<3 Bustatunez

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [WIP][Client-Side] Constructor HUD
« Reply #9 on: May 07, 2017, 11:31:24 am »

Update 1.0
(click to show/hide)

To-do
(click to show/hide)
« Last Edit: May 07, 2017, 11:33:21 am by PrOF »
Logged

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 594
  • Sometimes a dev. Only sometimes
Re: [Client-Side] Constructor HUD
« Reply #10 on: June 04, 2017, 08:15:32 am »

Kinda animation update
(click to show/hide)

To-do
(click to show/hide)
Logged

Lorgan

  • Retired Randomizer Mod Developer
  • Resident Miku
  • *****
  • Karma: 27
  • Offline Offline
  • Posts: 3657
    • My own website
Re: [Client-Side] Constructor HUD
« Reply #11 on: June 04, 2017, 09:27:14 am »

-Make the exclamation point not show up when first building the sentry (need help)
if (global.myself.sentry.built && global.myself.sentry.hp <= 40) { 
    
// do stuff 
}
Logged
Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking

BatCow

  • Junior Member
  • **
  • Karma: 5
  • Offline Offline
  • Posts: 83
  • Absolue Garbage
Re: [Client-Side] Constructor HUD
« Reply #12 on: June 23, 2017, 05:00:42 pm »

___________________________________________
ERROR in
action number 1
of Draw Event
for object SentryHealthHud:

Trying to draw non-existing sprite.



how 2 install?
Logged
A demake of a clone of a remake of a sequel made using assets from a demake of a sequel to a sequel

Pootis Powers

  • Full Member
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 228
  • Soap
Re: [Client-Side] Constructor HUD
« Reply #13 on: June 23, 2017, 08:04:34 pm »

___________________________________________
ERROR in
action number 1
of Draw Event
for object SentryHealthHud:

Trying to draw non-existing sprite.



how 2 install?
Put the .gml and the Resources folder into the Plugins folder.
Logged
bam shock dodge again wow im on fire total skill.

BatCow

  • Junior Member
  • **
  • Karma: 5
  • Offline Offline
  • Posts: 83
  • Absolue Garbage
Re: [Client-Side] Constructor HUD
« Reply #14 on: June 24, 2017, 12:45:29 pm »

Thanks
Logged
A demake of a clone of a remake of a sequel made using assets from a demake of a sequel to a sequel
Pages: [1] 2
 

Page created in 0.03 seconds with 50 queries.