2D Platform Shooter: Aiming while Running

For questions about using Classic.

Post » Sat Feb 26, 2011 10:36 pm

Yo! This is my first topic post; so I might to be a little more abrupt than I will be in the future.
As a lot of you I've bothered recently know; I am attempting to make a side-scrolling platform shooter with aiming capabilities; a lot like Metroid. My problem is that, while I aim and run (Up+Right/Left) the running/aiming animation I have made does not play. Instead; it only displays the first frame of the action; making it look like the character is ice-skating. If anyone could help I would really appreciate it. This is one of the main things hampering my project.

---------------------
Anyone who wants to see the .cap file can download it here: http://www.megaupload.com/?d=W8LDTQM7
Thanks for your time. :)
B
2
G
1
Posts: 5
Reputation: 460

Post » Sat Feb 26, 2011 10:46 pm

I dled the cap. The problem is that it is constantly trying to switch animation frames while both are playing at the same time. Construct doesn't blend animations at all.

A way to solve this is to have two sprites, one for legs, and one for the upper body. The legs will run on different animations as will the upper body. To have these connected, put the hotspot on the bottom of the upper body sprite and the top of the legs sprite. Then do:
[code:3ssu2w7l]
->Always (every tick)
+Set "player chest" position to object "player legs".[/code:3ssu2w7l]

That should work. :wink:
B
26
S
7
G
5
Posts: 202
Reputation: 5,235

Post » Sat Feb 26, 2011 10:49 pm

Sounds good. I'll try that and get back in a sec.:)
B
2
G
1
Posts: 5
Reputation: 460


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests