Platform Attack While Crouching

For questions about using Classic.

Post » Mon Jun 20, 2011 3:24 am

[quote="chrisbrobs":1tvb50zk]Have you read the Platform School tutorial By deadeye ?

It has a good section on animation event sorting.

[url:1tvb50zk]http://www.scirra.com/forum/viewtopic.php?f=8&t=2154[/url:1tvb50zk][/quote:1tvb50zk]
Yes I have, unfortunately I don't think it would help out to reread it in this case.
B
7
S
2
G
3
Posts: 139
Reputation: 2,331

Post » Mon Jun 20, 2011 9:20 am

I edited you cap, it's working now.
download
edited
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Mon Jun 20, 2011 9:56 am

[quote="Noga":7j5ot98u]I edited you cap, it's working now.
download[/quote:7j5ot98u]


The animation doesn't work on my p.c.?
----------------------------------------------------------------------------------------------
Here's a working example i put together

[url:7j5ot98u]http://dl.dropbox.com/u/22173473/Z_solution.cap[/url:7j5ot98u]

This is how i did it -
Added a dummy with only 2 frames of animation, and a wait object.
Set the dummy to invisilble at start.

Then add these lines to the event sheet-


Woops, forgot about the 180 angle for dummy animation, [color=#FF0000:7j5ot98u]added this event to line 18[/color:7j5ot98u]

+ System: Always (every tick)
-> link2: Set position to object link (image point 0)
->[color=#FF0000:7j5ot98u] link2: Set angle to link.Angle[/color:7j5ot98u]
B
19
S
6
G
7
Posts: 1,203
Reputation: 7,294

Post » Mon Jun 20, 2011 10:37 am

You guys are making this way too complicated :mrgreen:

Fix: http://dl.dropbox.com/u/17634050/Zelda%20II_fix.cap

(Also fixes a bug where you can't attack in-air while holding down)

Kinda had to re-do all of your events lol.

Also, if I may.. Link is supposed to have 3 walking frames, less friction, and pulls his sword back before and after attacking. You're also using the wrong frames for jumping. Aaaand you might want to make a 'base' or 'collision mask' for Link or he will get hung on ledges and stuff. Ok I'm leaving now..
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Jun 20, 2011 11:01 am

Yeah, I forgot to include conditions and two more actions, it's fixed now.
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Wed Jun 22, 2011 2:30 am

I was able to fix it by getting rid of the crouching variable and by saying when the down arrow key is down and z is pressed use the animation, it's more messy but at least it works.

Here's the fix if you want to see:
[url=https://docs.google.com/leaf?id=0B9d5pqOItfvfNGY3NzdhMjYtMThlMi00ZTczLWE1NGQtYWUyYzVkZTUyODk0&hl=en_US&authkey=CNC677QO:3dkz7rub]Download[/url:3dkz7rub]
[quote="Tokinsom":3dkz7rub]
Also, if I may.. Link is supposed to have 3 walking frames, less friction, and pulls his sword back before and after attacking. You're also using the wrong frames for jumping. Aaaand you might want to make a 'base' or 'collision mask' for Link or he will get hung on ledges and stuff. Ok I'm leaving now..[/quote:3dkz7rub]
Thanks for the advice, I recently put in a collision sprite for link, but I didn't like the way link crouched before he jumped and landed in the original, also I made him a little faster and more maneuverable because it was just more fun to move around that way.

Edit Edit:
I downloaded your .cap and I couldn't figure out where you put the walking animation to play or link to stop moving when attacking or crouching.
B
7
S
2
G
3
Posts: 139
Reputation: 2,331

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest