Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Screen Shaker (Earth Quake) Effect for AGK T1

Author
Message
TrezSoft
AGK Tool Maker
11
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 7th Feb 2013 00:25
Simple Screen Shaker Lib for AppGameKit T1 (Tested on 1088)

Example included in the download

Instructions:
Include library


Initialise Shaker ( duration (5 seconds), Strength(16 pixels) )


In the game loop update the shaker
status ( 0 = running, 1 = complete)

Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 8th Feb 2013 20:25 Edited at: 8th Feb 2013 20:25
Are the white lines supposed to drift?
TrezSoft
AGK Tool Maker
11
Years of Service
User Offline
Joined: 8th Nov 2012
Location: UK
Posted: 8th Feb 2013 20:33
Yes in the sample included. Basically because the demo does not have a "Player" and a Camera to lock onto the player you will get drift.

I have a 2D Camera lib which I will upload later tonight. When the Camera is setup you simply tell it to follow the "player" sprite. The Camera includes a Trap zone also some damping. With the Camera lib the Shaker effect will look better as it will keep tracking the
player when the screen is shaking and so prevent the drift you see in the shaker demo.

Login to post a reply

Server time is: 2024-05-07 16:30:41
Your offset time is: 2024-05-07 16:30:41