Posted By
|
Message
|
vSv
Registered 06/04/2010
Points 373
|
17th May, 2014 at 17/05/2014 12:21:31 -
Hi!
I've been working on this enemy for a rather long time now and it it seems I just can't get it to work perfectly. I've been trying to make Stalfos work as close as possible to it's original counterpart.
There are three problems (that I know of) with this enemy:
1. Stalfos "shakes" very much while moving against a single block but not while moving against two blocks, as seen in the example. Stalfos shakes even more when attacking while moving against a single block. It shouldn't shake at all.
2. I haven't found out any good way to define when it's falling or not, as such I can't disable it's attack or change it's animation while falling.
3. Sometimes Stalfos gets into some attack state and will keep on attacking even if the player is farther away than his intended attack range.
Any ideas? Help would be much appreciated!
Clickteam Fusion 2.5 file:
http://www.mediafire.com/download/74...lfos_Enemy.mfa
MMF2 file: (Graphical glitch on the left sword attack here, but it doesn't really matter)
http://www.mediafire.com/download/f2...Enemy_MMF2.mfa
- vSv
|
nim
Registered 17/05/2002
Points 7234
|
17th May, 2014 at 17/05/2014 13:29:17 -
Hey vSv. Your Mario Fusion game looks really good!
The links above don't work but I grabbed it from the thread you posted on CT (http://community.clickteam.com/threads/87028-Zelda-II-Stalfos-Enemy)
1.
I don't have a lot of time right now but after taking a quick look at it I think I can help you with your first problem.
Stalfos gets pushed out of walls at 2 pixels each frame but moves normally at 1 pixel per frame. Just think about what your events are doing: Move right 1, overlap a wall, move back 2, move right 1 (overlap a wall, move back 2) - repeat this process quickly and you'll see why it "shakes".
I fixed #1 by swapping the order of the Movement and Overlapping Fix groups and changing events #31 & #32 to +1/-1 instead of +-2 and disabling the "Temp fix for block climbing" events (34 & 35)
//
|
vSv
Registered 06/04/2010
Points 373
|
17th May, 2014 at 17/05/2014 14:30:07 -
Hey!
Thank you! Really appreciated!
I tried this way too before but I had to create the "Temp fix for block climbing" (34 & 35) as Stalfos otherwise will climb over single blocks.
If Stalfos (without "Temp fix for block climbing") is positioned so that he walks towards both the player and a block at the same time as he is attacking he will be pushed upwards for some reason.
The players position where this occurs: http://www.mediafire.com/convkey/a7bc/tyjfmcit2ubpe9qfg.jpg
Fixed the broken links with this FileDrop folder: http://www.mediafire.com/folder/k0r01pn0u4r7u/FileDrop
Edited by vSv
- vSv
|
vSv
Registered 06/04/2010
Points 373
|
17th May, 2014 at 17/05/2014 17:13:30 -
Update!
Issue #1:
Stalfos still has that "shake" effect when Stalfos is positioned so that he walks towards both the player and a single block at the same time as he is attacking.
The players position where this occurs: http://www.mediafire.com/convkey/a7bc/tyjfmcit2ubpe9qfg.jpg
Issue #2:
I think it works as intended as for now.
Stalfos should actually be able to move a little bit both to the left and right when falling, but this is OK for now.
Issue #3:
I think it works as intended.
Updated files at the FileDrop folder: http://www.mediafire.com/folder/k0r01pn0u4r7u/FileDrop
- vSv
|
|
|