How do I solve this problem?

Get help using Construct 2

Post » Tue Dec 06, 2016 1:35 pm

1. countdown timer:
coundown to 0, not -10, -20 so on...yes i already set it pause the game if it is equal to 0, but due specific reason of my game, the number yeah...pause at negative part...so how do i just countdown to 0..just 0 without any negative.

2. score counting up. , animation?
i really dont know how to expalin this, here, normally or mostly if the game show result, they dont just show or pop up just like that...especially at the score part. i need my score is counting up to the score where i gain it. (when the result show)...i think it just like score animation or score effect? something like that..difficult to explain but that how it is...

3. specific space, box or container...
another part difficult to explain.
example: click the setting>then box or container contain of another button or content inside of it...i mean it kind of hard for me put it one by one..ok i know how to do it, but is there any other different method to do it?

just answer if you know any of this...
#RESPECT
#THANKYOU
B
7
S
2
Posts: 25
Reputation: 575

Post » Tue Dec 06, 2016 4:10 pm

1. I don't know how you set up your countdown, but the most sensible way would be to make the event like this:
Code: Select all
Set X to clamp(X-1,0,infinity)

The clamp will prevent the value from going below 0.

2. Not really sure what you mean here.
Do you want an animation for the text to show up? Like with the "fade" behavior?
Or do you want the numbers to count up to a final value?

3. Again, I don't really know what you mean...
Do you want a popup that shows up when pressing a button, and that popup containing another button or text?
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Wed Dec 07, 2016 1:01 pm

randomly wrote:1. I don't know how you set up your countdown, but the most sensible way would be to make the event like this:
Code: Select all
Set X to clamp(X-1,0,infinity)

The clamp will prevent the value from going below 0.

2. Not really sure what you mean here.
Do you want an animation for the text to show up? Like with the "fade" behavior?
Or do you want the numbers to count up to a final value?

3. Again, I don't really know what you mean...
Do you want a popup that shows up when pressing a button, and that popup containing another button or text?


1. I think it working now thanks,,,
2 and 3: yeah, probably that what i want...
B
7
S
2
Posts: 25
Reputation: 575

Post » Wed Dec 07, 2016 3:28 pm

Alright, with 2, I still don't know what you want. I asked you whether you want this or that and you answered with *yes*...

Alright, with 3, you can simply add a layer, call it "popup" for example. It contains whatever you want in your popup.
Now, you set the layers initial visibility to "invisible" and set it to "visible" whenever you want the popup to appear.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Sat Dec 17, 2016 11:45 am

randomly wrote:Alright, with 2, I still don't know what you want. I asked you whether you want this or that and you answered with *yes*...


2. Not really sure what you mean here.
Do you want an animation for the text to show up? Like with the "fade" behavior?
Or do you want the numbers to count up to a final value?

sorry, late...
B
7
S
2
Posts: 25
Reputation: 575

Post » Sat Dec 17, 2016 8:36 pm

Have a look at this.
I hope this satisfies your needs.

It counts the score up to a defined value and fades it in and out.
The animating speed can be set manually.

Usage:
  • Type in number in Textbox. This will be the final Score you want to display.
  • Hit "Animate!"
You can change the animating speed by changing the "speed" value in the event sheet.
The lower, the value, the faster and shorter the animation.
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091


Return to How do I....?

Who is online

Users browsing this forum: TRMG and 34 guests