Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Runner Sprite Sheet Freeze/Lock - Totally Lost :) — Gideros Forum

Runner Sprite Sheet Freeze/Lock - Totally Lost :)

KeepTryingKeepTrying Member
edited September 2012 in Game & application design
Hi everyone i'm totally lost with my sprite sheet, the game start but the animation just don't work, the character get inside the platform and freezes on a specific frame, so the body keep going and fall, when he leaves the platform he play other frames, i really don't know what is going on;
By the way it's the Runner Template from H4ch1

fall set = 17 frames
jump set = 18 frames
run set = 18 frames
total = 53 frames

The PNG act like a PhysX body ? or only the shapeRun:setAsBox(10, 15) are considered as PhysX body ?
Many thanks in advance :)
Take a look at the code i think the problem is here:

function runnerClass:init()
self.blinking = 0;
--adding animations
self:addAnim("running", {36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53}, 5, 0);
self:addAnim("jumping", {18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,}, 10, 1);
self:addAnim("falling", {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17}, 10, 1);

Comments

  • petecpetec Member
    Accepted Answer
    No idea about the runner template but there's a bit in this line that looks odd:
    self:addAnim("jumping", {18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,}, 10, 1);
    You've got a comma after the 35 and before the close bracket } which isn't there in the other lines. Might that be the problem?
  • Thank's for your help that's right, i'll play with another settings because the animation run based on linear velocity;
Sign In or Register to comment.