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
12
S
1
Posts: 86
Reputation: 1,118

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
40
S
8
G
3
Posts: 546
Reputation: 5,085

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
12
S
1
Posts: 86
Reputation: 1,118

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
106
S
41
G
20
Posts: 1,584
Reputation: 18,917

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
12
S
1
Posts: 86
Reputation: 1,118

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
57
S
23
G
7
Posts: 1,435
Reputation: 10,524

Post » Tue Apr 07, 2015 2:23 pm

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


Very good thank you.
B
12
S
1
Posts: 86
Reputation: 1,118


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], R0J0hound, UncleHo74, varons666 and 3 guests