mekonbekon's Recent Forum Activity

  • My tip would be to have some people play the project and ask them their opinion on the graphics - if the general consensus is that they're too blurry/don't look high enough quality then consider resizing. Otherwise, if users are happy with them then where's the benefit of spending loads of time changing them?

    Bear in mind that resizing the assets is going to up your download size and memory hit.

  • That's very helpful, massive thanks!

  • Hi Janaina, do you have a capx that you can share? It will be easier to figure out the problem if we can review the code.

  • I think that's the same file as last time?

  • Oh it does not loop (step) when against the wall ? I did't notice that. Got to re look at it.

    It's better in this case for it not to be looping when against the wall.

    About: 'shouldn't the move left/right animations be resetting to frame 0 every tick?'

    When you use the action 'Set Animation' .... then the animation will change ONLY when ...

    The new animation is different then the current playing animation, OR, when the current playing animation is in the state of 'stopped'.

    An animation is in the state 'stopped' when you used the action 'Stop' or/and when a non looping animation reached the end of frames.

    Usually i do not set the walking animations to 'looping'. Because they are set on 'Key is down', a continuous 'every tick' condition.

    Key is down (or vectorX =not zero)

    __________Set Animation "walk" (from beginning)

    When "walk" is not looping, that action will do nothing as long as "walk" is playing, when "walk" is stopped (animation is at the end), that action will restart the animation, effectively looping the animation.

    I did not check this on the capx, btw.

    I was not aware that the animations worked like that - interesting. I figured that the anim would restart every time it hit the "play animation from beginning" action, regardless of whether it was currently running or stopped. Thanks for enlightening me!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 99Instances2Go

    Thanks for sharing this, and apologies for the delay in responding. It does partially solve my issue and I may well end up going with this so much appreciated, although I'm not entirely sure how this voodoo is working correctly: shouldn't the move left/right animations be resetting to frame 0 every tick? Or conversely, shouldn't the animation continue to loop when against the wall?

    I think the initial problem might arise again with this solution if I wanted to play a different animation when the avatar is next to the wall, a "collide" or "interact" animation for example.

  • Thanks for posting - I missed that thread.

    I've already filed it as a bug but if what Ashley says is correct and it's not going to be fixed then I'd suggest removing that condition from the behaviour because it is totally unreliable; in a platform game where the avatar is jumping around there will be plenty of opportunities where the avatar ends up in this situation. Either that or you have to build your levels so such a possibility can't arise, which is a pretty heavy restriction.

    TBH I don't understand why the check has to stop after moving it up and registering a ceiling. Why can't the test continue to move the sprite horizontally to test for a wall? If the sprite is on the ground and has a ceiling directly above it doesn't that preclude it from being on a slope? Or do a check on the sprite's angle to confirm whether it is horizontal.

  • You're welcome

  • Do you mean like this?:

    https://www.dropbox.com/s/7ywe7l3cacwh0 ... .capx?dl=0

    Cursor keys to move.

    You can adjust the sprite's instance variables to change speed, rotation and acceleration/deceleration.

  • Have you checked out the top-down shooter template that comes bundled with C2? That would be a good place to start.

    Select File>New>Template: Top-Down Shooter.

    Also, this tutorial: https://www.scirra.com/tutorials/37/beg ... onstruct-2

  • It's a little hard to envisage the issue. Maybe you could post the capx, or if you don't want to share that perhaps a gif/video of the problem?

  • Giving this a bump before I resort to logging it as a bug.

mekonbekon's avatar

mekonbekon

Early Adopter

Member since 9 May, 2014

Twitter
mekonbekon has 13 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • x3
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • Coach One of your tutorials has over 1,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

20/44
How to earn trophies