I've removed the map transition crashes by doing it manually instead of using the physics engine.
I've also separated the collision bodies used for actor-terrain collision and actor-actor collision. Tell me how it feels, guys.
My own action adventure engine
Re: My own action adventure engine
- Attachments
-
- SpaceNinja.love
- Now with 5% less crashing
- (147.67 KiB) Downloaded 388 times
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: My own action adventure engine
Animations are still super sped up for me.
animation.lua:19You're missing dt.
animation.lua:19
Code: Select all
anim.time = anim.time - 1
Re: My own action adventure engine
On purpose.TechnoCat wrote:You're missing dt.
Code: Select all
local FPS = 60
local SECONDS_PER_FRAME = 1 / FPS
local accumulatedTime
...
function love.load()
accumulatedTime = 0
...
end
local function doUpdate()
...
end
function love.update(dt)
accumulatedTime = accumulatedTime + dt
while accumulatedTime >= SECONDS_PER_FRAME
do
if not isPaused then
doUpdate()
end
accumulatedTime = accumulatedTime - SECONDS_PER_FRAME
end
end
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: My own action adventure engine
Why are so many people lately trying to bypass dt?
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: My own action adventure engine
Because we don't hit them enough. These unguided projectiles need re-education!
Seriously though, don't try not to use dt, just use it, it's not like it's hard.
Seriously though, don't try not to use dt, just use it, it's not like it's hard.
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: My own action adventure engine
Because it's not that well explained on the wiki. If you search for dt in the wiki the results are kind of a mess. It's first explained in the Hamster Ball tutorial, pretty far down the page. We really need a tutorial just for combining dt with animations.TechnoCat wrote:Why are so many people lately trying to bypass dt?
Kurosuke needs beta testers
Re: My own action adventure engine
Because I don't want to put "* dt" beside everything.TechnoCat wrote:Why are so many people lately trying to bypass dt?
And because variable timesteps makes some things like physics numerically unstable. I've posted the link to this article before, though you're going to have to scroll down a bit.
Anyway, I think I've fixed the animation speeds. I know I've fixed a few other things anyway.
- Attachments
-
- SpaceNinja.love
- dt sucks
- (150.33 KiB) Downloaded 231 times
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: My own action adventure engine
The solution to that physics problem is running physics multiple times in smaller timesteps, not not using dt.
Re: My own action adventure engine
Throws up hands
Yeah, well, I'm still not using dt.
Yeah, well, I'm still not using dt.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: My own action adventure engine
If you don't use dt, people with other machines than yours will hate you.
Help us help you: attach a .love.
Who is online
Users browsing this forum: No registered users and 3 guests