Percentage completion level [SOLVED]

Get help using Construct 2

Post » Mon Apr 06, 2015 4:38 pm

Hello everybody.

Simple way to do this?


:)
Last edited by derikvlog on Wed Apr 08, 2015 12:48 am, edited 2 times in total.
B
18
S
1
Posts: 89
Reputation: 1,284

Post » Mon Apr 06, 2015 9:40 pm

type a : and then immediately a )


But seriously... I watched a gameplay video on Mr. Jump and don't quite understand what your asking.
- Percentage of jump strength?
- # of jumps used in level?
- % of way through level completed?
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
68
S
17
G
8
Posts: 637
Reputation: 9,420

Post » Tue Apr 07, 2015 2:38 am

chrisinfinger wrote:type a : and then immediately a )


But seriously... I watched a gameplay video on Mr. Jump and don't quite understand what your asking.
- Percentage of jump strength?
- # of jumps used in level?
- % of way through level completed?


- % of way through level completed
B
18
S
1
Posts: 89
Reputation: 1,284

Post » Tue Apr 07, 2015 2:51 am

Given the following values, you can determine percentage completion as follows:

StartX - X coordinate of the start line
CurrentX - current X coordinate of the player
EndX - X coordinate of the finish line

Percentage completion: ((CurrentX - StartX) / (EndX - StartX)) * 100
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116

Post » Tue Apr 07, 2015 11:10 am

linkman2004 wrote:Given the following values, you can determine percentage completion as follows:

StartX - X coordinate of the start line
CurrentX - current X coordinate of the player
EndX - X coordinate of the finish line

Percentage completion: ((CurrentX - StartX) / (EndX - StartX)) * 100


Hello.

txtPercent | action : Set text to = ((PLAY.X-StartLine.X)/(Finishi.X-StartLine.X))*100

no work?
B
18
S
1
Posts: 89
Reputation: 1,284

Post » Tue Apr 07, 2015 1:19 pm

I am sure that there are simplest solutions.....
Image

Image
capx:
http://s000.tinyupload.com/index.php?fi ... 6718391191
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Tue Apr 07, 2015 2:23 pm

korbaach wrote:I am sure that there are simplest solutions.....


Very good thank you.
B
18
S
1
Posts: 89
Reputation: 1,284


Return to How do I....?

Who is online

Users browsing this forum: dop2000, KTML5, newt and 21 guests