ios - SpriteKit texture not visible -


i'm developing game there characters number of animations, play when user uses game controls moving, fighting, etc.

there normal state, i.e. when user not touching control, player's character's texture has been assigned normal state or resting state texture.

if user exercises these controls quickly, player's character's texture disappears when goes normal state. if of controls used however, animations visible.

can me issue? appreciated.

i have displayed of basic programming structure have used below.

//-------------------------------------------------------------------------   *// 'normal or resting' state texture.*  skaction *normalstateaction = [skaction settexture:normalstatetexture];   *// play character animation walk, fight, jump, etc.*  [playercharacter.sprite runaction:[skaction sequence:@[charanimaction,normalstateaction]]];   *// in 'touchesended' method game control.*  -(void)touchesended {      // remove previous actions.     [playercharacter.sprite removeallactions];      // run normal state action.     [playercharacter.sprite runaction:normalstateaction]; }  //-------------------------------------------------------------------------  

it might me overlooking something, don't remove touchesended code complete totally. since actions end normal state, can remove actions on touchesbegan, , let them run through cycle though user up-touches.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -