Screen Shaking for Prototypes
ADSentertainment
Member Posts: 397
Is there any way possible for a prototype actor to be able to shake a screen? I know how to do it easily with instances (if that's what you call them), but I have an actor who throws a stick of dynamite, and I want the screen to shake when it explodes, I can't really edit the instance actors of the dynamite because they don't exist yet, and when they do, I can't really edit them.
Having trouble with your game? Sounds like a personal problem.
Comments
www.rossmanbrosgames.com
Having trouble with your game? Sounds like a personal problem.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
When X(the game attribute you create) is true
Change Camera Origin x and/or Y to whatever values you want for the shake, and then change back.
If you want to make it easy on yourself and you're using it in a lot of different scenes just drag your camera shake logic into the tab for custom behaviors. That way you just drag an actor onto a scene, unlock and drag the already defined logic in right away from the custom behavior tab.
What @natzuur is getting at is that you have your spawned dynamite actor notify another unlocked actor on the scene via something like a boolean game attribute that gets changed when the dynamite actor spawns.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Having trouble with your game? Sounds like a personal problem.