Movement issues
tylerglessner
Member Posts: 246
Firstly, sorry about the music in the video
Okay, I'm trying to make it so that when the character arrives at a wall (barrier), he no longer will be able to move in that direction. I tried the Collide behavior, but it shot the character about 1000 pixels in the opposite direction. Anyone have a system that would work for a game like this?
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
This template was one of my first introductions to tables and it left a lasting impression:
http://forums.gamesalad.com/discussion/38411/free-tables-template-from-dba
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
EDIT: New question. How would I modify the template to make the character slide to position like my system in the video? I tried the move to behavior and the game had a minor (or major) freak out.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
The 20 at the start of the expression is subtracting from the total number of rows which happens to be 20 in the demo. If you had 45 rows, you'd need to subtract from 45. So try replacing the 20 with tableRowCount(tableName).
That value of 20 may be hardwired somewhere else in the project file but I didn't see it after a quick look.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User