codah's Forum Posts

  • That's true. It is difficult to think some of these problems through. The event based nature of c2 is like concurrent programming in other languages and not easy to get your head around.

    The thing I took away from working on your capx is to separate the changing of state variables from everything else. So set state variables in one event and act on those states in separate events. I can't help thinking that using Groups and enabling/disabling them to enable or disable certain events might work here. I'm looking into using that technique more myself. The are also state machine plugins which might be useful to you.

  • I tried a few things with the capx including unbounded scrolling but it didn't seem to work. But I didn't spend that long on it.

  • In event 25, disable the action "enemy_bbox: Start ignoring 8Direction user input" and it works.

  • Yup.. but what I want is not explained. I guess..

    No but you can see you have an axis with values from 0-100 depending on how far you move the joystick, so.. sounds like a relative speed value, with some basic maths.

  • This looks great and very polished. How many working on this?

  • A0Nasser very little code but it keeps waiting for 1.0 seconds forever.

    Just for fun I thought I'd have a go.

  • You do not have permission to view this post

  • Welcome

  • to get either 1, 2 or 3 use int(random(1,4))

    or

    choose(1, 2, 3)

  • It's not that the animation isn't stopping, it's just that your logic is somehow flawed and sets it to the "walkL" and "walkR" animations again when it shouldn't. Maybe you need a variable to track the overlapped state. Bit vague sorry, but see if that triggers any thought processes I've added a few log messages to show this.

    [attachment=1:1zg2vjnt][/attachment:1zg2vjnt]

    Edit: ok, so I thought I'd have a good go at this as I might learn something. See the capx below. It seems to be doing what you want.

    [attachment=0:1zg2vjnt][/attachment:1zg2vjnt]

  • Hi Zathan, did you read and understand the manual entry? https://www.scirra.com/manual/143/gamepad

    Let us know which part you're having trouble with.

  • I'd like to post my WIP. I've exported as an HTML website, copied to dropbox and get a link to the index.html. I change the http://www.dropbox to dl.dropboxusercontent and try to view the link but all I get is a black screen. I thought this would be the easiset way of quickly sharing a link to my game. What am I doing wrong? Thanks.

    Edit: well the turorials are out of date, but a comment towards the end of the google drive method worked for me.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe 'System:Scroll to object Player' or similar.

  • Yes that should be a simple change.

  • You should use delta time (dt) when moving your object. So, (2 * dt) instead of just 2. Look it up in the manual or tutorials. Then your object will stop when timescale is zero.

    edit: sorry didn't read the title properly