function particleLoop()
local p = graphics.getParticles(game.CurrentScene.Objects.footstep)
local c = game.CurrentCharacter
local dir = (game.CurrentCharacter.Direction - 90) / 180 * 3.1415
game.CurrentScene.Objects.footstep.Center = game.CurrentCharacter.Position.y +1
p.rotation = {0.0, dir, 0.0, dir}
p.center = {c.Position.x, c.Position.y}
p.size = {0.0, c.Size*0.5, 0.0, c.Size*0.5}
print(game.CurrentScene.Objects.footstep.Center)
end
registerEventHandler("mainLoop", "particleLoop")