ekajuan's Forum Posts

  • You can use LOS Line of sight to detect the player within certain radius. Then tell the enemy to chase the player.

    If the player is out of reach, you cell tell the enemy to standby.

    If currently the enemies are running away, probably you told them to do so in your coding.

  • I want the skull to move foward when the path of rotating asteroids is open.

    Currently I use pathfinding behavior. But it seems pathfinding only works when since the beginning there are no obstacles. So in this case, if the path is opening and closing, what should I do to make the skull moving?

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

    [attachment=1:1dyxqsus][/attachment:1dyxqsus]

  • what's the coding you use?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm thinking to create multiple simple boxes as rotator. So I created one, then copied it.

    The question is if I want to pin something to the rotator, how can I pick which rotator to pin on?

  • LOS works perfectly. Thank you.

  • yep, exactly just like BinaryPanda said.

  • The space ship is suppose to go around the medusa. It has to fly backwards avoiding the front cockpit facing directly to the medusa head. How to detect that my front cockpit is facing the head of medusa?

    [attachment=0:2jdgekof][/attachment:2jdgekof]

  • Let's say I have a layout with height of 500.

    But I just want to use 450 for the environment (middle), and use the rest just in case for different device with different screen size.

    How to make it work with scroll to behavior?

  • Never mind, found the culprit. I applied scroll to to 2 objects.

  • My layout is horizontal. When my spaceship goes right, it moves faster than the viewport. So my player get off the screen.

    I change the layer of my player's paralax speed to 200,200. Now it can keep up. But, isn't 100,100 the normal speed?

    And if I use 200,200 and certain x distance, my lasers gets destroyed before it reaches outside viewport.

    Where have I gone wrong?

    First I thought maybe the custom movement I use? But, nope, I've tested it with 8 directions. But the result is the same.

  • Ah, I have found the error. So basically I'm in a loop of restarting the layout forever.

    That's why the animation seems to stop, but the lasers keeps created and destroyed constantly.

    All I have to do is to add trigger only once while true

    Thanks for the input.

  • So I'm making a game within one layout. Everything works ok.

    Then I duplicate the first layout, because the next stage will have different environment latter.

    The new layout still using the same event sheet.

    But strangely, eventhough the timescale is 1, the control and the animation stop.

    One of the weird things I observed.

    I have a ship that should shoot lasers constantly. But in this case the ship seems only shoot 1x and it stays at one spot.

    But if I check the debugger, lasers are still created and destroyed constantly.

    My lasers only get destroyed when outside the layout.

    So if the lasers ain't moving outside the layout, how can they get destroyed?

    Are there any particular things I should pay attention when using multiple layout with one event sheet?

  • I think there's an option to play it only once. It will play again if the first one stops.

  • I have around 30 actions on start layout.

    Some is to destroy sprites that aren't required for the moment. The total of my sprites are below 30.

    It's relatively very small compare to your game.

  • Should it be only at the beginning?

    What is the common practice?