I'm not THAT new. It's pretty late right now, tired as all hell. I didn't even look at that line of code..osgeld wrote:ahh new lovers ...
your overwriting the original values with the ones provided in the formula, = overwrites
so maybe (without looking at a single bit of code...)
camera.x = camera.x + (camera.xmag * math.sin(camera.time * camera.speed * 2))
camera.y = camera.y + (camera.ymag * math.sin(camera.time * camera.speed))
?
small "shaky-cam" effect
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: small "shaky-cam" effect
@rynesaur
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: small "shaky-cam" effect
Oh yeah, I assumed you didn't use camera.x and camera.y for something else.
A better way of dealing with it would be to set camera.shakex and camera.shakey and translate the camera by (camera.x + camera.shakex, camera.y + camera.shakey) instead of (camera.x, camera.y).
A better way of dealing with it would be to set camera.shakex and camera.shakey and translate the camera by (camera.x + camera.shakex, camera.y + camera.shakey) instead of (camera.x, camera.y).
Help us help you: attach a .love.
Re: small "shaky-cam" effect
yea I know, I did it partly to rattle your cage a bitI'm not THAT new.
Who is online
Users browsing this forum: Majestic-12 [Bot], zorg and 3 guests