Spaceship Tilting Right/Left Anim [Solved]

Get help using Construct 2

Post » Sun Jan 29, 2017 1:50 am

Hey, guys.

I'm trying to set this up, but I'm having a devil of a time.

On right arrow pressed/held ->play animation tiltright from current frame (about 9 frames tilting right)
On right arrow released -> reverse animation tilt right from current frame to default
On right animation finished (last frame tilt right or Frame 9)– play right engine anim (simple 2 frame anim)

I have 2 examples of this, which are sort of similar, but not quite: the Ashley Space Blaster Game and a nice little pirate game side scroller with a sprite strip and a mask.

I actually don't know what the best way is to set this up as this is my first forray into sprite animations in C2 (aside from something simple I did for a platformer a while back).

so.

1) Is the best way to set this up as traditional animation playing or an image with the full animation and a mask? I have an example of the latter, but I'm still not fully sure how it works. The animation strip has some instance variables like num, frame, and sprites I believe. Why would people set it up this way as opposed to the traditional way Construct 2 does it?

2) How the heck would I implement this:

On right arrow pressed/held ->play animation tiltright from current frame (about 9 frames tilting right)
On right arrow released -> reverse animation tilt right from current frame to default
On right animation finished (last frame tilt right or Frame 9)– play right engine anim (simple 2 frame anim)

I did something cool yesterday from scratch without any examples, where I surprised myself. Maybe my brain is just fried today.
Last edited by AmpedRobot on Sun Jan 29, 2017 5:13 pm, edited 3 times in total.
B
41
S
20
G
18
Posts: 274
Reputation: 13,055

Post » Sun Jan 29, 2017 2:01 am

Is it top down? Because if it is, you wouldn't need the animations, just one sprite using the 8 direction. Would save a lot of work too. But I'm guessing its not?
B
15
S
8
G
2
Posts: 68
Reputation: 2,465

Post » Sun Jan 29, 2017 2:03 am

Oh, hi.

I should mention this is top down and custom movement. I don't use platform behavior at all since it didn't work for what I was trying to do.
B
41
S
20
G
18
Posts: 274
Reputation: 13,055

Post » Sun Jan 29, 2017 2:07 am

I should also mention that while the engine 2 frame anim is playing and u press the left arrow or release the right arrow the tilt right anim should reverse again by itself to default frame.
B
41
S
20
G
18
Posts: 274
Reputation: 13,055

Post » Sun Jan 29, 2017 2:14 am

So being top down, you wouldn't need animation to create what you wanted. Just allow it to angle rotate on movement. Though it would have to be top down and not slightly offset to create the effect. I mean I would use the 8 direction movement, just have frames that show lights, engines etc. Therefore not needing to animate frames and saving time. You can however add the pin behaviour to objects, like particles so the ship has smoke or whatever you wanted.

Sorry if I'm not making much sence, I'm new myself but have found this way the best for top down. Though not so good for a top down angled game, whereas you would need at least 4-8 frames for the angles. I have a link saved, I will have to post it tomorrow or PM you it if I am unable to post links. It explains the movement with 8 direction.
B
15
S
8
G
2
Posts: 68
Reputation: 2,465

Post » Sun Jan 29, 2017 2:17 am

I already have the animations done, which are really cool, why is I'm trying to integrate them.

If somebody knows how to do this and needs a base starting non-working capx with some squares whatever, please let me know and I'll post.
B
41
S
20
G
18
Posts: 274
Reputation: 13,055


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests