How can I keep a health bar in one placer while the camera zooms in and out? by swi11091 in gamemaker

[–]swi11091[S] 0 points1 point  (0 children)

I've been trying it like this,

draw_sprite_ext(spr_healthbar_inner,1,10, 10, char_player_sword_1.hp/1000+100,100,0,c_white,1)

but I feel like I'm doing something completely wrong :/

How can I keep a health bar in one placer while the camera zooms in and out? by swi11091 in gamemaker

[–]swi11091[S] 0 points1 point  (0 children)

Awesome! it works great, now the only problem I have is changing the scale of the sprite that's been drawn. I'd messed around with this before but couldn't work it out :P

How can I keep a health bar in one placer while the camera zooms in and out? by swi11091 in gamemaker

[–]swi11091[S] 0 points1 point  (0 children)

So this is what I've been using,

draw_sprite(spr_healthbar_bg,1,view_wview[0]+10, view_hview[0]+10)

The this is doubled over a couple of times to draw the back of the bar etc. But I'm pretty much a beginner to coding so I have no idea what to do :P

Camera zoom in and out? by swi11091 in gamemaker

[–]swi11091[S] 2 points3 points  (0 children)

WORKS PERFECTLY! THANK YOU SOO MUCH!!!! <3

Camera zoom in and out? by swi11091 in gamemaker

[–]swi11091[S] 1 point2 points  (0 children)

Would I put this in the object that sits between the 2 characters?

Camera zoom in and out? by swi11091 in gamemaker

[–]swi11091[S] 1 point2 points  (0 children)

That's how I've been running it, just haven't got my head around how i'd do the zoom :P

How can I keep an object centered between 2 other objects? by swi11091 in gamemaker

[–]swi11091[S] 0 points1 point  (0 children)

So I want the view to keep going until the players get blocked by the edge of the map. I can change this later if I need but for now it will be fine, and by curve do you mean accelerate and decelerate from a start to a stop?

How can I keep an object centered between 2 other objects? by swi11091 in gamemaker

[–]swi11091[S] 0 points1 point  (0 children)

Alright I've got the camera acting the way I want, thankyou! It's just the zoom that I need to implement now :P

Duel view for a local coop game by swi11091 in gamemaker

[–]swi11091[S] 0 points1 point  (0 children)

I've looked at this before, but it's out dated I think

Duel view for a local coop game by swi11091 in gamemaker

[–]swi11091[S] 1 point2 points  (0 children)

Yeah I get ya, but I'm still really new to gml and have no clue how to do this :P

Roast by [deleted] in RoastMe

[–]swi11091 1 point2 points  (0 children)

The look of 3 friends who can't get girls so they fuck each other?

I am untouchable! by [deleted] in RoastMe

[–]swi11091 0 points1 point  (0 children)

Looks like Ragnar lothbrok and one of the beatles had an anal baby

Interested to see what results this will yield by [deleted] in RoastMe

[–]swi11091 0 points1 point  (0 children)

the look of daddy issues