semaphore and citizens

Get help using Construct 2

Post » Sat Dec 29, 2012 5:15 pm

I can perform as an interaction between a semaphore and citizens

B
12
S
4
G
4
Posts: 138
Reputation: 3,710

Post » Sat Dec 29, 2012 5:17 pm

...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Sat Dec 29, 2012 5:38 pm

I think you need to provide a bit more information if you want people to understand what you're asking.

@Whiteclaws: Not trying to be rude or anything, but your post is pretty pointless in my opinion.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Sat Dec 29, 2012 5:50 pm

That's the perfect description of this post @Nimtrix :D !
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Sat Dec 29, 2012 6:06 pm

You can accomplish it quite easily with variables, the bullet object and animation.

Create a traffic light sprite, three frames for each light.

Create your pedestrian sprites, add the bullet behaviour, initial speed set to 0.

Simple bool variable, when the traffic light sprite is green, the bool becomes true. Separate event, conditional of bool being true: Results in pedestrians having set speed to 30, 300 etc. whatever feels good.

You could make it more complicated by having a numeric variable, each light represented by a number, and have a few pedestrians cross on amber.

The real confusion is why there's a zebra crossing and traffic lights!

Hope that helps, traffic lights can actually get very complicated from a programming perspective if you want to do them properly (With a real logic system controlling a city for example.

Just thinking about it brings back memories of Flowol... Ow.
B
49
S
14
G
3
Posts: 540
Reputation: 5,611


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests