Streak Thunderstorm Posted November 17, 2008 Report Share Posted November 17, 2008 I saw someone with a fangame here using Sonic worlds and it had a really badass camera shake whenever Sonic boosted. I like the effect alot and was wondering if anyone knew how to duplicate it. What I basically want it for is when Sonic collides with something at high speed, it would shake OR when Sonic slams the ground with the rock shield... OR when a bigass boss monster roars. So yeah, help is greatly appreciated. This little effect, even if insignificant, will help lots of my already existing effects look cooler. Link to comment Share on other sites More sharing options...
DimensionWarped Posted November 17, 2008 Report Share Posted November 17, 2008 You'll just need to set up either a new object or some new variables in your camera object to include earthquake amplitude X and earthquake amplitude Y. In your existing camera code, just add your amplitudes multiplied by a random value between 0 and 1 to the existing equation. Link to comment Share on other sites More sharing options...
cyborg_ar Posted November 17, 2008 Report Share Posted November 17, 2008 ...Or you could use sin() and cos() functions instead of random to get a more uniform shaking (will move in circles) Link to comment Share on other sites More sharing options...
Streak Thunderstorm Posted November 17, 2008 Author Report Share Posted November 17, 2008 I don't want uniform. I want it to be balls out radical badass shaking. You think you can halp me, DW? Seeing as how you know pretty much everything about worlds.... and I've never really touched the camera stuffs before. Link to comment Share on other sites More sharing options...
LarkSS Posted November 18, 2008 Report Share Posted November 18, 2008 Can't you just alter the raw camera coordinates after the camera is changed in the camera group? Then you could just set the coordinates to an amplitude amount as DW said with a function to randomly get positive or negative values from the amplitude preferably attached with a random generator that decreases along with the amplitude value. It would give an effect where the camera is rumbling hard and then slims down to a slight shake before stopping. Link to comment Share on other sites More sharing options...
DimensionWarped Posted November 18, 2008 Report Share Posted November 18, 2008 I don't want uniform. I want it to be balls out radical badass shaking. You think you can halp me, DW? Seeing as how you know pretty much everything about worlds.... and I've never really touched the camera stuffs before. Sure. Hit me up during the week end. Link to comment Share on other sites More sharing options...
DiabloHedgehog Posted November 18, 2008 Report Share Posted November 18, 2008 I would just go the lazy way and have the camera always set to whatever it looks at by default +two values that give it extra X and Y posisions, then just set those two counters to always set a random between -5 and +5. It may not be brilliant but the player only see's the shake not your code Link to comment Share on other sites More sharing options...
Streak Thunderstorm Posted November 18, 2008 Author Report Share Posted November 18, 2008 Well, the camera is controlled by many different values. Whenever I tried to change the raw positioning of it, it never worked. I tried editing the look up and look down values and it SORT of worked but not as I had hoped. Link to comment Share on other sites More sharing options...
True_Sonic Posted November 18, 2008 Report Share Posted November 18, 2008 What game was it that you saw it in Streak? Link to comment Share on other sites More sharing options...
Daniel Posted November 19, 2008 Report Share Posted November 19, 2008 What game was it that you saw it in Streak? In my head, I think Streak was thinking of Sonic Burst Link to comment Share on other sites More sharing options...
Streak Thunderstorm Posted November 19, 2008 Author Report Share Posted November 19, 2008 Dnlhern you are correct. Link to comment Share on other sites More sharing options...
Recommended Posts