From 8445dd2e843f36e9d439b397feb4d014cf126014 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 5 May 2019 13:18:06 +0200 Subject: [PATCH] examples/plateformer : make the character clone its sprite --- examples/gameplay/plateform/actors/player.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/gameplay/plateform/actors/player.lua b/examples/gameplay/plateform/actors/player.lua index e5966a0..8c32364 100644 --- a/examples/gameplay/plateform/actors/player.lua +++ b/examples/gameplay/plateform/actors/player.lua @@ -4,6 +4,7 @@ local Player = Base:extend() function Player:new(world, x, y, id) Player.super.new(self, world, "player", x, y, 16, 24, true) self:setSprite("player", 8, 12) + self:cloneSprite() self:setYGravity(480) end