Distance Score Infinite Jumper

Get help using Construct 2

Post » Fri Feb 07, 2014 11:30 am

The image should be working now.

I'm not sure what you think

System | round(abs(Toby.Y-StartY)) | > Greater than | Player.Y

should do, but it is checking if the distance between startY and Toby.y is bigger than the player's Y-position.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Feb 07, 2014 11:36 am

Yeah, it didn't work, so I put.

Group: SCORE

-> System | On start of layout | Set StartY to Player.Y

   System | round(abs(Player.Y-StartY)) > Score | Set Score to round(abs(Player.y-StartY))

But it's still not working.. sigh, sorry man I'm new to this whole Construct scene just trying to really understand as much as I possibly can.
B
6
S
1
Posts: 89
Reputation: 619

Post » Fri Feb 07, 2014 11:37 am

I posted and deleted that I thought I would've had it down from what you showed me
B
6
S
1
Posts: 89
Reputation: 619

Post » Fri Feb 07, 2014 11:50 am

So where is StartY?
I tried it again it's not working for me here is how my event looks



I also tried using > Score

Instead of > Toby.Y

B
6
S
1
Posts: 89
Reputation: 619

Post » Fri Feb 07, 2014 12:19 pm

Ok, could you please explain, what you think these events do, so I can try to understand why you made it this this way?


What was wrong with the example I made?

Just add a (new) event to my example.

on start of layout - set StartY to toby.y

add the action set text to Score to the event in my example and you should be ready.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Feb 07, 2014 12:43 pm

I'm just having trouble understanding the theory in Construct 2

Here is what I have now



can you tell me where I went wrong
B
6
S
1
Posts: 89
Reputation: 619

Post » Fri Feb 07, 2014 12:55 pm

On start of layout
- set startY to toby.y

NEW EVENT!!!!!!!

System| round(abs(toby.y-startY))>Score
- set score to round(abs(toby.y-Starty)
- set text to Score

On start of layout is only triggered once (on start of layout!)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Feb 10, 2014 2:59 am

I tried it over and over again, I don't know what I'm doing wrong, is it possible to give me a capx example so that I can study it and learn from it? That would be great. Last hope.
B
6
S
1
Posts: 89
Reputation: 619

Post » Sat Feb 15, 2014 6:13 pm

any screenshots for people who really know nothing about variables and how to set them? :D
B
3
Posts: 3
Reputation: 181

Previous

Return to How do I....?

Who is online

Users browsing this forum: Google [Bot], ksiads and 3 guests