Move Rule no longer working
Magian
Member Posts: 3
in Tech Support
- Loaded the Basic Shoot 'Em Up template
- Created a new scene
- Created a SpaceShip actor
- Drug the actor into the scene
- Added a Move rule to the Prototype
When we first ran the game this rule worked correctly and the spaceship moved to the right when the right arrow key was pressed.
I then renamed the rule to "Movement" and clicked "Off" to disable the rule and see if it worked as expected. It did.
However, after I clicked "On" and played the scene once more, the rule would no longer worked. I even tried recreating the rule but it still does not work. Any idea what I might have done?
Comments
Some things to check:
Report back your findings and we'll go from there...
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Log Debugging Statements can be added anywhere... within rules, before rules, after rules... they just log information to the Debugger window but otherwise don't affect your code.
You might want to either post a screenshot of the rule in question or post a link to download your file (.zip it first). That way we can assist you further.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Let me know if this doesn't help and I will upload the project.
That looks correct. You're welcome to post the project and I can take a look. It may be something simple like an extra space in the key field or it may be something that isn't that obvious.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
We finally solved the problem and, while I am a bit ashamed to say what it is, I still think it is somewhat odd.
The problem was that the Play screen did not have focus.
That being said, the reason that I never suspected this is because when I first open GameSalad and run the game for the first time, the Play screen has the focus and works correctly. On all subsequent runs, I must first click the screen with the mouse before anything works.
Anyway, at least the problem is solved. Thank you for trying to help.
I was having the same problem. It is kind of weird that the screen is loses the focus after making changes. I am glad I found this thread.