How do I stop my animation?

Just started using Construct 2? Post your questions here

Post » Fri Mar 04, 2016 7:46 am

My Hero runs on a path into a bush trying to kill the enemy. When the game starts he moves immediately forward. I want him to wait for the player to start the game and he must be able to stop at any point to checkout before moving on. I am utilizing the FREE edition.
B
9
S
1
Posts: 9
Reputation: 499

Post » Fri Mar 04, 2016 9:22 am

I'm not sure about your problem
Animation, Pathfinding, Enemy AI, ...

so if it's animation: https://youtu.be/pk0o26CIfEE?t=549

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Sat Mar 05, 2016 11:27 pm

You could put the enemy movement into a group and deactivate the group in the project. Then have it activated ice the player clicks start. It's worth splitting your code into sections so you're not constantly checking things that don't need to be checked. Like menu clicks in game, or game logic in menus :-)
B
12
S
2
G
1
Posts: 42
Reputation: 879

Post » Thu Mar 24, 2016 7:02 am

fm4fanAT thanks for the link, I learned much from that. Got my animation to move the way I want. Now I want my animation to shoot any direction say 0 - 180 degrees. I manage to have my animation shoot 360 degrees when the game starts and it stand still, but when it starts moving and I utilize my down key (D 90 degrees) it swings to 180 degrees and the bullet comes from the middle of the animation in the wrong direction, not from the point of the gun.

russellit Thanks for the input. I am a "Newby" and do not know anything about grouping. Perhaps send me a link to learn how to utilize it.
B
9
S
1
Posts: 9
Reputation: 499


Return to Beginner's Questions

Who is online

Users browsing this forum: davidbox and 1 guest