Behavior: 8 Way Movement

Doomboy

  • Posts: 8
I'm new here so I don't know if I am the first to do this, but I have just published a behavior resource onto StencylForge which allows the user to move the character diagonally as well. I have designed it for a top-down game, where the Player looks in different directions by rotating, as opposed to using a different sprite. If anybody wants me to alter the program to accommodate for the latter then please tell me!  :D
So can anyone give me any feedback please?  :)

Rob

  • *
  • Posts: 1268
I'll give it a whirl and give you some feedback today. We definitely will need more help on building common behavior like yours. Great job, Doomboy.

Just a suggestion, I added a screenshot/sample play now feature to my behavior called Wavy movement so that it is more comprehensive. It's in same area on Forge (Behavior->Newest->Wavy Movement 4/24/2011). You can double click on it to see details and also try play now.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Rob

  • *
  • Posts: 1268
Well done. I downloaded your behavior and it worked right away. Very nice and clean.

A few suggestions:

1. Add all 8 way animation (so idle + all 8 way animation beside just idle and walking).
2. Possibly set default speed to some real number. I tried 20 and it worked nicely for me. Possibly add in a comments say what's the default and what are good settings to have.
3. Maybe have an option to be 4-way only. Up to you.

I like to see more behaviors such as this from you.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Doomboy

  • Posts: 8
Okay, I've sorted out the Forge page so it's a bit better, and I've uploaded a simple demo to try out the behavior, plus a very minimal screenshot.
I'll now look into what you have suggested -
1. Right, I'll give that a go, so instead of just changing the direction that the Player is pointing, it'll change the animation instead, right?
2. I didn't realise that a default value wasn't given! I'll change the description to reflect this, and I'll also add comments throughout the code so that people can see and understand the implementation.
3. This shouldn't be that hard to implement, I'll give it a go...
Thanks for your input though!
EDIT - Oh, and you guessed right, 20 is the correct number to use! (At least, that's what I had guessed as wel...  :P )

« Last Edit: June 02, 2011, 11:54:48 am by Doomboy »

Rob

  • *
  • Posts: 1268
Okay, I've sorted out the Forge page so it's a bit better, and I've uploaded a simple demo to try out the behavior, plus a very minimal screenshot.
I'll now look into what you have suggested -


1. Right, I'll give that a go, so instead of just changing the direction that the Player is pointing, it'll change the animation instead, right?

That's correct.

2. I didn't realise that a default value wasn't given! I'll change the description to reflect this, and I'll also add comments throughout the code so that people can see and understand the implementation.

If I recall, there are ways to set a default other than 0 but I am not sure you want to do that. Right now,
after download, I am getting 0 as default. By comment, I mean comments next to the attribute when we are attaching the behavior to an actor.

Thanks.

3. This shouldn't be that hard to implement, I'll give it a go...
Thanks for your input though!
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Doomboy

  • Posts: 8
Right, so I've done most of what you have suggested, ie the description and animation/rotation. I have given a choice between the two as well. The 4 way movement option amy take a while longer as the way it is currently coded means that it will be very hard to change. So is there anyway you can update a resource in Forge? I see there is a 'Version' indicator on the page, so I imagine there is something...?

Luyren

  • *
  • Posts: 1856
So is there anyway you can update a resource in Forge? I see there is a 'Version' indicator on the page, so I imagine there is something...?

Just reuploaded it. It should ask if you want to replace or upload as new.
I have my Stencyl behaviors and resource packs available here: https://luyren.itch.io/

Doomboy

  • Posts: 8
Just reuploaded it. It should ask if you want to replace or upload as new.

Didn't work for me, just creates a new copy, so that I have two '8 Way Movement' resources uploaded...   ::)

Rob

  • *
  • Posts: 1268
Can you just retain both copies on Forge so that we can debug it? I've seen this in the past and we can potentially use your behavior as a debug vehicle.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Rob

  • *
  • Posts: 1268
Can someone from community team move this to possible bug section (duplicate behavior name when publishing to Forge)?
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Doomboy

  • Posts: 8
Okay, just made the second version public, sorry it took a while, I've been a bit busy today.
It seems that Forge is indeed still keeping the two versions separate...

Rob

  • *
  • Posts: 1268
OK. I'll check on it and also try it myself. Will get back to you. Thanks.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Rob

  • *
  • Posts: 1268
@Jon, I see duplicate 8 Way Movement by Doomboy on Forge Newest behavior even he is trying to replace it. Could be a bug.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title

Joe

  • *
  • Posts: 2480
I see two of them. Is he not able to delete one of them?

Rob

  • *
  • Posts: 1268
No. Actually he loaded the first one as 8 Way Movement. After some editing couple days later, he tried to upload the behavior with same name to Forge again. I think Forge did not prompt him or even if it did and he selected replace, it ended up NOT overwriting the original one. There should be only one single copy on Forge.
GOLDEN RULE #1 : SAVE YOUR GAMES FREQUENTLY
IOS/XCODE DEBUGGING
http://www.stencyl.com/help/view/xcode-ios-troubleshoot/
WATCH STENCYLWORKS VIDEO TUTORIAL BY SUNRISEKINGDOM
http://www.youtube.com/watch?v=KDfRfjzr9j4&feature=channel_video_title