platform animation

Get help using Construct 2

Post » Wed Dec 19, 2012 4:15 pm

what is the correct way to make event without bugs for a player animation? walk run fall jump attack
B
6
Posts: 28
Reputation: 831

Post » Wed Dec 19, 2012 8:10 pm

The beginner's platform tutorial covers building events for basic movement pretty well: http://www.scirra.com/tutorials/243/building-a-platform-game-a-beginners-guide/page-3. You should probably follow the full tutorial from the beginning

You can definitely get everything you need from that. Just apply the same logic to any other actions, like attack uses a keyboard press of spacebar, for example. It only really gets more complicated than that when you want to give characters actions like rolling, mantling and vaulting.
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Thu Dec 20, 2012 5:44 am

not so simple in fact   what is the difference for the condition (is on platform) and (on platform) i guess my bugs comes from here
B
6
Posts: 28
Reputation: 831

Post » Thu Dec 20, 2012 8:13 am

Those two conditions don't exist. Do you mean "is moving" and "on moved"? Either way, the principle is the same:

The first group of platform conditions are perpetual. Construct will test to see if those conditions are ever taking place and, when they are, will do whatever actions you specify every tick that those conditions are met.

The second group (the animation triggers), is only triggered once for each time the condition is met, indicated by the little green arrow as part of its icon.

Going with the movement I mentioned above, you'd use it as follows:

(1)-Player.platform(on moved) set animation to player.animation "WalkStart"(play from beginning)

(2)-On animation("WalkStart") finished
-Player.platform(is moving) set animation to player.animation "Walking"(play from beginning)

If that still doesn't work you should post your capx so we can take a look through it and point out specifically where you've gone wrong.
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Thu Dec 20, 2012 5:03 pm

yes it's a good idea to post it, but how to do that?
B
6
Posts: 28
Reputation: 831

Post » Fri Dec 21, 2012 5:44 pm

https://www.dropbox.com/sh/ic380uk5ybtxst3/0I6eqFeKHv
B
6
Posts: 28
Reputation: 831

Post » Fri Dec 21, 2012 6:02 pm

There is a difference between a caproj(project folder, which sums up files in directories) and a CAPX(a zipped single package of the project).

Dropbox as your using it won't make use of a caproj. Please save as an CAPX. Now I renamed the capx.backup1, but that could be old.

ok looking over your program. What is wrong with it?

Also I think your refering to
"Platform on Floor" which is true when your object is standing on the floor.
"Platform Landed" is an event triggered upon the platform landing after being in the air.

B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Fri Dec 21, 2012 8:07 pm

https://www.dropbox.com/s/hxzp7cavy22edxl/f.capx
B
6
Posts: 28
Reputation: 831


Return to How do I....?

Who is online

Users browsing this forum: anty21ro, LeFuji, RookieDev, TRMG, Yahoo [Bot] and 19 guests