Hello,
I'm new to the scirra forums and construct2 but recently joined after someone showed me some cool things you can make with the game engine. But to get to the point, I have some questions about dt.
I think I have a basic understanding of how its used but I can't seem to fully grasp it. Lets say I want to move an object like this:
Event: Every Tick--> Sprite set Y--> to sprite.Y+5
I know there are behaviors that come with dt, but I would like to move the object this way for a scenario in the game. I would like to move the object 5 pixels down. The problem is it's not always fast unless I add dt but even so I can't seem to get it right. I would like for it to run as fast as possible on different systems and devices but have it move at 5 pixels.
So I was wondering if I would set the sprite's Y position to sprite.Y + (300*dt)
Or would it be sprite.Y + (500*dt)?
I assumed it would be 300 since multiplying 5*60 gives 300. So every 60 seconds the sprite would move 300 pixels which would be 5 pixels a second?
Or am I wrong? I find dt a bit confusing so I would appreciate it if someone could tell me how I can move a sprite object by 5 with dt. (Sprite.Y+5)