How do I set a collision based on the animation frame

Get help using Construct 2

Post » Wed Sep 09, 2015 5:52 am

Hi, I am trying to make a collision based on the animation frame. What I have right now is a button that disables an object to collide when it changes animation.
The button changes the animation and at the same time disables the Object that would collide with the player. I want to make it so when you tap the screen it makes the same things happen and not have a button for it. Note is I have 2 animations and I want to make it so certain objects can destroy the player when he is in frame 0 but not 1 , and a different object destroy the player at frame 1 but cant at frame 0.

How can I implant this with touch
B
4
Posts: 5
Reputation: 212

Post » Wed Sep 09, 2015 12:59 pm

just need to add another condition so for example.
--If animation "YourAnimation" isPlaying
--If animation frame = "The frame you wanna use"

and for setting up the animation you need to say
-- On Tap
Play animation "Your animation"
B
5
S
1
Posts: 24
Reputation: 650

Post » Wed Sep 09, 2015 6:29 pm

once the player changes an animation it does not change back. I want to make it so on tap sets animation to "1" and when I tap a second time it should set animation to "0" and vice versa
B
4
Posts: 5
Reputation: 212

Post » Mon May 15, 2017 1:11 am

thanks @uyu34! this helped with my current project.
Play Ball Walker App Store | Google Play | Amazon
Image
B
29
S
5
Posts: 112
Reputation: 2,045


Return to How do I....?

Who is online

Users browsing this forum: BadMario, stevenode and 6 guests