Screen Shaking for Prototypes

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

  • By "instance" I think he means unlocked. No if you are spawning the actors they can't make the screen shake. You would need them to trigger an attribute that n actor controlling the camera can use to shake the screen

  • ADSentertainmentADSentertainment Member Posts: 397
    edited January 2014
    By "instance" I think he means unlocked. No if you are spawning the actors they can't make the screen shake. You would need them to trigger an attribute that n actor controlling the camera can use to shake the screen

    My apologies, I wasn't sure what the right word was. I was thinking of doing that technique, I was seeing if maybe there was a more simple way, thanks though!

    Having trouble with your game? Sounds like a personal problem.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    I don't see the problem here. If you are spawning dynamite that explodes, then you can make the screen (camera) shake when it explodes. What does it have to do with prototypes or instances?

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • natzuurnatzuur Member Posts: 304
    edited January 2014
    I don't see the problem here. If you are spawning dynamite that explodes, then you can make the screen (camera) shake when it explodes. What does it have to do with prototypes or instances?
    This. You can still write a rule set with a boolean or something to trigger the logic.

    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.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Oh wait. I think I get it now. To change the camera settings you have to use an unlocked instance. If you are spawning a locked prototype then you can't do this.

    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

  • ADSentertainmentADSentertainment Member Posts: 397
    Oh wait. I think I get it now. To change the camera settings you have to use an unlocked instance. If you are spawning a locked prototype then you can't do this.

    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.
    Sorry if I wasn't being too clear about it, and yeah, that's what I was thinking of doing, just checking to see if there was another solution is all.

    Having trouble with your game? Sounds like a personal problem.

Sign In or Register to comment.