This should be an easy one for all you C2 Wizards :)

Get help using Construct 2

Post » Fri Apr 10, 2015 10:20 pm

Message: Jophiel can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello all you Construct 2 Wizards out there. I have been trying and trying but cant seem to figure it out :(


1) I would like to randomize the blue block at different parts on the platform.

2) I would like to add 1 to my score when the player collides with the blue block. BUT only if I press a button on the keyboard then it will add 1 to the score(You will see it in the example below) Meaning..when the player collides with the blue block I will have to press a button on the keyboard(lets say spacebar) and it will add 1 to the score.

Thank You All, this is a wonderful community :)

http://bit.ly/1IALV3V
B
8
S
2
Posts: 56
Reputation: 677

Post » Sat Apr 11, 2015 12:29 am

Try this:
1- System - every(random(1,9)seconds --- System - create bluebox at x position

2- player on collision with bluebox --- add 1 to score
keyboard space is down
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,165

Post » Sun Apr 12, 2015 6:46 am

A0Nasser wrote:Try this:
1- System - every(random(1,9)seconds --- System - create bluebox at x position

2- player on collision with bluebox --- add 1 to score
keyboard space is down



Hey thanks for the reply :) Your suggestion for my second question worked well,but I still cant seem to randomize the blue box on the platform,but thanks for taking time to help
B
8
S
2
Posts: 56
Reputation: 677

Post » Sun Apr 12, 2015 6:51 am

Use random expression for the X position
B
16
S
7
Posts: 301
Reputation: 2,726


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 8 guests