Make an almost pre determinated movement

Get help using Construct 2

Post » Tue Mar 27, 2012 4:46 pm

Hello all :D

Anyone can help me to make this object (lets call it Guardian) who moves up and down on the screen, but randomly? Like he is trying to avoid arrows.

For example: move up to point Y = 600 and then move down to Y = 100, then to up again to Y = 600, and this time, he goes down to Y = 250 and then to Y = 550.

I'd like to make this behavior kinda "random". But the guardian should not pass the Y = 600 point (let's say it's the wall) and Y = 100 (the floor)

I don't know if I explained this clearly. Please comment :)
B
6
Posts: 56
Reputation: 712

Post » Tue Apr 03, 2012 2:18 pm

Up? xD
B
6
Posts: 56
Reputation: 712

Post » Tue Apr 03, 2012 2:45 pm

Here we are. This is a simple .capx with a solution.

It is not perfect and a more experienced Constructer could probably show us a better one. I know it could be simpler by changing the rotation, but that might not be the best if you want the character to face the same way. Or you might want to make it face the wait is going. Which then this isn't the best way.

http://db.tt/29WGFoLJ

Hope that helps!
B
29
S
4
Posts: 42
Reputation: 2,391

Post » Tue Apr 03, 2012 3:04 pm

Also up is lower than down on c2 coordinate system.
Y = 200 is higher than Y = 400 ... Just to say
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Sat Apr 07, 2012 8:53 pm

Thanks Dalek. It worked perfectly.
B
6
Posts: 56
Reputation: 712


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests