Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Construct 2 example about creating an animated player, they used more than 8 events:

4 events to store movement direction into Direction variable from Player.8Direction.MovingAngle

4 events to select animation based on Direction value

1 event to stop animation

Apparently if would be much easier to do the same with simple if-else code with 4 or 5 cases. Is it possible in Construct 2?

UPDATE

I didn't find scripting, but was able to express the same example in more condensed way:

enter image description here

All names are from example.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.