# Percentage completion level [SOLVED]

Get help using Construct 2

### » 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: 91
Reputation: 1,395

### » 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
81
S
22
G
8
Posts: 664
Reputation: 10,333

### » 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: 91
Reputation: 1,395

### » 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
115
S
41
G
20
Posts: 1,586
Reputation: 19,196

### » 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: 91
Reputation: 1,395

### » Tue Apr 07, 2015 1:19 pm

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

capx:
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,104

### » 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: 91
Reputation: 1,395