oosyrag's Recent Forum Activity

  • On shoot animation finished set animation to idle?

  • Try following along in the beginner's guide. construct.net/en/tutorials/beginners-guide-construct-1

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could always use the built in plugin for a peer to peer connection.

    But there is literally no such thing as instantaneous either way as far as the internet is concerned. Any and all communications are asynchronous by nature, as there is no way to know ahead of time how long it takes for any given message to be received regardless of the method.

  • You can't change the viewport position in the editor, but you can reposition it at runtime. So scroll to a position below/above your layout.

  • You want to use a repeat loop to spawn bullets.

    For example if you had 2 bullets spawn, one on either side, in 5 degree increments, you would use

    + System: Repeat 16 times

    -> System: Create object Bullet on layer 0 at (0, 0), create hierarchy: False

    -> Bullet: Set angle to Bullet.Angle+LoopIndex×5 degrees

    -> System: Create object Bullet on layer 0 at (0, 0), create hierarchy: False

    -> Bullet: Set angle to Bullet.Angle-LoopIndex×5 degrees

  • The line of sight behavior is what you're looking for. There are examples in the start page as well.

    construct.net/en/make-games/manuals/construct-3/behavior-reference/line-of-sight

    Line-of-sight can also perform Raycasting. Normal line-of-sight checks there are no obstacles in a straight line between two objects. With raycasting, if there is an obstacle in the way, you can find the exact position of the obstacle in the way, as well as the surface normal and angle of reflection. The Instant hit laser example provides a demonstration of how to use raycasting.

  • There is not, but you can work around it by using a viewport sized (or otherwise, depending on your desired effect), and simply working outside the bounds of the layout.

  • you are telling it to 'play from the first frame' constantly so it will appear static. You can try 'set animation' instead

    Change 'start animation' to 'set animation'

  • I suppose the strict answer is no.

    But you could easily simulate it with multiple instances of the tilemap object, as you already described.

  • Have you completed the multiplayer tutorials? For a turn based game you probably won't need the 4th part, but it's a good idea to go through it anyways.

    If you have a specific question I'd be happy to help... But you'd need have a question to ask first.

    One way to assign turn orders is to simply use the same order clients connected to the room.

  • I have no idea what you mean by that, but as it is now since it is taking inputs from the accelerometer, it will definitely be affected by shaking as well.

  • Do you have your basic controller movement set up?

    You'll add to that with an event that adjusts the 8direction maximum speed, proportional to the distance your stick is from the center.

    To get the distance from center, you want sqrt(gamepad.axis(gamepad,indexX)^2,gamepad.axis(gamepad,indexY)^2)

    indexX and indexY are the numbers of the x and y axes of the gamepad respectively, I'm guessing 0 and 1 but I'm not sure.

    Divide that by 100 to get a value between 0 and 1, and use the resulting number to limit your maximum speed proportionally with the lerp expression so...

    Every tick set sprite 8direction max speed to lerp(0,definedmaxspeed, (sqrt(gamepad.axis(gamepad,indexX)^2,gamepad.axis(gamepad,indexY)^2))/100)

    definedmaxspeed is your maximum speed in a single direction. Note that diagonals will exceed this speed. There's probably a better way around this but I can't think of it at the moment.

    Now there's going to be a problem where the maximum speed is set to 0 immediately after releasing the stick, which will stop your character right away and I'm assuming that would be undesirable.

    So instead, you would set the maximum speed to the higher of the two values between current speed and stick speed limit by using the max(a,b) expression. Resulting in...

    max(sprite.8direction.speed,lerp(0,definedmaxspeed, (sqrt(gamepad.axis(gamepad,indexX)^2,gamepad.axis(gamepad,indexY)^2))/100)

    Unfortunately I don't have a gamepad to test with so I'm almost certain I made a mistake in there or overlooked something, so that's why I wrote out the thought process. Let me know how it goes.

oosyrag's avatar

oosyrag

Member since 20 Feb, 2013

Twitter
oosyrag has 38 followers

Trophy Case

  • 11-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies