Condition based on behavior

For questions about using Classic.

Post » Mon Nov 17, 2008 1:31 pm

How to create condition based on behavior? Like speed of ball behavior (eg. if speed of object is greater than 5).
When I'm trying: insert event > object (with ball behavior) > Ball tab - there is nothing to select.
B
53
S
14
G
10
Posts: 282
Reputation: 7,578

Post » Mon Nov 17, 2008 1:37 pm

Use 'Compare values' in the system object - and compare Sprite[Ball].Speed. If you need picking with more than one instance, put a 'For Each Sprite' above it.

It was quick to add though so I've put in 'Compare speed' in the ball movement for the next build :P
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518

Post » Mon Nov 17, 2008 1:44 pm

great, it works :)
Thanks.
B
53
S
14
G
10
Posts: 282
Reputation: 7,578


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests