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
16
S
1
Posts: 89
Reputation: 1,224

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?
B
47
S
11
G
5
Posts: 554
Reputation: 6,576

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
16
S
1
Posts: 89
Reputation: 1,224

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
109
S
41
G
20
Posts: 1,586
Reputation: 18,996

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
16
S
1
Posts: 89
Reputation: 1,224

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
Image
B
59
S
23
G
7
Posts: 1,450
Reputation: 10,614

Post » Tue Apr 07, 2015 2:23 pm

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


Very good thank you.
B
16
S
1
Posts: 89
Reputation: 1,224


Return to How do I....?

Who is online

Users browsing this forum: 20170217, 8bitgamer, alimuqaddas, PrinceHata and 8 guests