Can't figure out simple movement issue

0 favourites
  • 9 posts
From the Asset Store
This template provide Turn Based strategy engine + Rewarded admob + In app purchase + Level unlock + In game store
  • Could anybody tell me why my movement and animation is wonky? I've double checked the origins, direction, movement, everything, and I still can't get it to work.

    It's a simple "maze" movement system but am I missing something here? I don't know why the sprite is jumping around as well as displaying the wrong animations

    I can't post links for now but could I send someone the .capx file to review?

  • Sure, I could take a look. Just PM the link.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Ugh, can't even PM cause of limits

    Edit: dropbox.com/s/yld4i1kw7wsd55w/Pac-ManxPortal.capx

  • Hi..

    I looked to this and noticed that there is only one animation sequence (down) in it.. I rotated it towards right (so that it turns proplerly) and gave it to all directions.. Not that this would fix all, but for starters.

    dropbox.com/s/5unc25mi8t2at49/Pacmanx2b.capx

  • All you have to do to make it work is to set the bullet set angle property to NO.

  • Hi..

    I looked to this and noticed that there is only one animation sequence (down) in it.. I rotated it towards right (so that it turns properly) and gave it to all directions.. Not that this would fix all, but for starters.

    Ah, weird, I had 4 animation sequences (those green film strips right?) for each direction

    Did you set the sprite to manually turn and would that be more efficient than making a separate animation sequence for each direction?

    All you have to do to make it work is to set the bullet set angle property to NO.

    Perfect, may I ask what that option affected exactly?

  • saltyprincess You are right about multiple animations.. That small animation selection box was under editor window so I missed it totally at the first time. (IMHO C2 Gui needs some overhaul.. there are too many confusing windows appearing and disapperaing)

    Bullet-behaviour has a default property that it rotates the sprite into the direction of movement. if you look the example I upped, it uses Bullet automatic rotation with just 1 animation. Of course it's better to use those 4 animations that are on right directions, but then you need to turn the automatic rotation off.

    LittleStain .. I noticed an oddity.. if I take the original and just turn the automatic rotation off, the first movement (if is up or down) seems to be ... Wonky? Like the animation looks ok, but the sprite moves -90degrees what's expected.

  • Bullet-behaviour has a default property that it rotates the sprite into the direction of movement. if you look the example I upped, it uses Bullet automatic rotation with just 1 animation. Of course it's better to use those 4 animations that are on right directions, but then you need to turn the automatic rotation off.

    Very helpful info, I didn't even know that was a property of bullet-behavior and probably would have been scratching my head over it for days.

    LittleStain .. I noticed an oddity.. if I take the original and just turn the automatic rotation off, the first movement (if is up or down) seems to be ... Wonky? Like the animation looks ok, but the sprite moves -90degrees what's expected.

    I noticed this as well, I fixed it by going into the event sheet and making sure "Set bullet speed" came before "Set bullet angle of motion" in each keyboard event

    I don't know how or why this fixes it, though (plus it seems counter-intuitive to start moving *before* changing direction)

  • I noticed this as well, I fixed it by going into the event sheet and making sure "Set bullet speed" came before "Set bullet angle of motion" in each keyboard event

    I don't know how or why this fixes it, though (plus it seems counter-intuitive to start moving *before* changing direction)

    An object already has a value for direction even if it's 0 degrees but you cannot set its angle of motion if it doesn't have any motion.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)