Character Direction and Fog
Hello! I'm brand new to gamesalad. I have basic knowledge of programing, and have already figured a lot of things out. I'm trying to make a 2d platform game and have a few questions:
How do I make my character stay looking in the direction he/she was moving in? If they move right, they automatically stay looking right when they stop moving because the original actor sprite is facing right. However, if they move left, once they stop moving and the walking animation ends, they revert back to facing the right direction. I looked for hours and found this post: http://forums.gamesalad.com/discussion/72333/stay-facing-direction
But, after trying to implement it, my character just glitches with a spastic left and right animation while staying still and the left walking animation is removed. Any solutions?A key element I wanted to implement was fog. After looking around, I read that particle effects are the best way to go about this. My game is pixel art based and particles don't always look great with pixel art. I was wondering if there was an alternate way. I would also like to have a visual field around the character when they are in the fog. So, they are able to see farther in front of them than behind them when they are in the fog. Or maybe farther if they have a flashlight of some sorts. Is this possible in game salad? How would I go about doing this?
Thanks in advance. I'm sure I'll come up with more questions as things move along.
Comments
For #1, you might try following the tutorial posted at http://forums.gamesalad.com/discussion/comment/509617/#Comment_509617 (start at 11:00).
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
that worked! thanks for the help. Any ideas on environmental fog?
Nope but someone else will probably have a suggestion.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
This is incredibly rough, but you could do it like this (but a lot better! ) - drag the little pink square around.
Link: https://www.mediafire.com/?qvfs0otti3p7i8m
this might be a dumb question, but how would I open the folder with game salad? i can see the file components, but can't implement it into GS