How do I make this shorter?

Just started using Construct 2? Post your questions here

Post » Sat Feb 13, 2016 1:02 pm

I am sure there is a good way to make it look shorter and more smart. What should I do?
Image
B
3
Posts: 1
Reputation: 177

Post » Sat Feb 13, 2016 5:26 pm

You can shorten that. But the preparation wil be the same amount of work. And the event will not look that readable for the human eye

You could make make a family containing all the particles, with a family instance variable to identify them (id = score).

Then you can do it with two condition events and one action.

The condition event would contain:
- the Trigger once
- the Car is moving
- a system > compare two values, with in first value: right(str(score),1), and in de second value: "0"

One sub-event on that condition
- a system> pick by comparison with in first value: family.id, and in the second value: score

The action on that sub even would be
- spawn on center camera the object family on layer 3
- audio > play(by name) with audio file name: "hit_"&str(score)
B
26
S
15
G
23
Posts: 2,045
Reputation: 17,081


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 2 guests