Need help with this guy, Shake and attribute .
Thani
Member Posts: 128
Ok , I'm kinda new to gamesalad and got two questions .
1 , How can I activate a shake in my background ? ( Let it shake my background )
2 , What does each attribute mean and what are the various stuff we can use them for ?
I've watched a couple of tutorials and didn't see that explains attributes , if there is a tutorial , please link it to me .
1 , How can I activate a shake in my background ? ( Let it shake my background )
2 , What does each attribute mean and what are the various stuff we can use them for ?
I've watched a couple of tutorials and didn't see that explains attributes , if there is a tutorial , please link it to me .
Comments
2.Get Photics Textbook.
A simple (not performance optimized) way could be
Timer For 2 --time of the shake
inside
Timer every 0.2 --intensity of the shake
inside
camera origin.x = random(camera origin.x - 20, camera origin.x + 20)
camera origin.y = random(camera origin.y -20, camera origin.y +20)
This should move every scrollable layer.
Ace
So say you wanted one actor going left and onegoing right of the same image or whatever, instead of making two actors with different behaviors with the same image, you can just make one actor wiht the image and then unlock them both in the scene and add different behaviors
am i supposed to add this "move camera" event thing to a collision event? i tried this:
"when block collides with ground, change attribute camera origin.y. to random(camera origin+20)"
wow. just from looking at this after typing it, already looks f-ed up lol
Change attribute camera origin.y. to random(10,20)
but i want it to come back to its original position. it stay at the new random position. should i add something?
So under that put a timer in and have it say after 2 seconds or howerver long you want), change attribute camera origin y to 0
thanks again bro!
i made it "shake" every 0 seconds for 0.5 seconds and the effect is VERY nice. thank you so much.
and anytime, glad it worked for you
::goes jump off the balcony::