codah's Recent Forum Activity

  • See attached capx. You're using an Else, so if the first condition is met (i.e. one or more sprites within 90deg of 0) then the second event is not triggered (no change of animation frame).

    Edit: minor wording, and modified a log statement in the capx

  • Sample capx would make it a lot easier.. but if you have an event to check line of sight (inverted) and then disable turrent behaviour.. it should work I would've thought. I have a combination of LOS and turret behaviour and it works ok. What is your LOS cone of view?

  • You go to layout by name (Text). So just construct your layout names based on some numbering scheme, and construct the layout name Text in your Go to action based on your randomly chosen number or other expression.

  • 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)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
codah's avatar

codah

Member since 30 May, 2014

Twitter
codah has 1 followers

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies