Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

[Eventing] Picture Scale : Variable

Status Gear Entertainment

Praised Adventurer
Hey guys StatusGearEntertainment, just had a thought for a simple loading bar that uses a picture that at 100% fills the 816px width size. Any way I can parallel a way to make a counter that counts down or a timer that counts down and as it counts down, the picture scaling size decreases with the variable/counter? zZz Can't figure it out through events, so it's now out of my hands. Something for you guys to think about and beneficial for everyone when solved. o///o
 

eivl

Local Hero
Xy$
0.00
What are you asking for?

Is it a full width bar that is controlled with a variable?
and do you want to control the variable with an event?

What would the use for it be?
 

Status Gear Entertainment

Praised Adventurer
Is it a full width bar that is controlled with a variable?
Yes. Right on the money. More or less just have a code that relates the scale function of the picture and compare it to the variable. If the variable is 100 then so is the percentage of the picture width. If your variable is at half then so is the picture width / or height.

and do you want to control the variable with an event?
Yes. Simply has an event run in parallel process that decreases the variable. This I know how to do. It's finding the control for the picture scale. I want to be able to say:
  • Variable 1 = 100
  • Picture 1, Scale Width = 100%
  • Picture 1 Width = Variable 1
  • Event, Parallel Process = Decrease Variable 1, Wait 60 frames.
What would the use for it be?
  • Loading Bars
  • Timing Action Bars
  • Health / Stat Bars
 

eivl

Local Hero
Xy$
0.00
Why would you want to scale an image? or even, use an image? would not a color gradient be good enough?
And if using an image is important, you can not scale it, you need to "cut". it also need to be a repeatable x-axis graphic as well.

if you do not know, i am making this as we speak, not to be used in general, but as a stamina bar.
It would be easy for me to make it so it is a "whatever" loading bar
[doublepost=1447764356,1447764323][/doublepost]You might want to keep an eye out during the advent calendar ;)
 

Status Gear Entertainment

Praised Adventurer
Why would you want to scale an image? or even, use an image? would not a color gradient be good enough?
Normally a gradient would be just fine. However if you expand on the idea for creativity, you can create bars

And if using an image is important, you can not scale it, you need to "cut". it also need to be a repeatable x-axis graphic as well.
I actually just managed to scale it. I used the move picture command and changed the width to 0% at 60 frames. This works for a quick timer but I don't have an actual variable attached to it yet.

if you do not know, i am making this as we speak, not to be used in general, but as a stamina bar.
It would be easy for me to make it so it is a "whatever" loading bar
[doublepost=1447764356,1447764323][/doublepost] You might want to keep an eye out during the advent calendar ;)
Heavily noted. o///o
 
Top