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,234

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
60
S
15
G
8
Posts: 619
Reputation: 8,970

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,234

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,096

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,234

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
62
S
23
G
7
Posts: 1,470
Reputation: 10,731

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,234


Return to How do I....?

Who is online

Users browsing this forum: AkbarAsgharMG, cjbruce and 8 guests