calminthenight's Forum Posts

  • if you don't want to go the container route for any reason, you could also do it by adding these events.

    EnemyShip is Flashing

    Cannon overlapping enemy ship

    trigger once

    --- Cannon Start flash

  • That's because the "on collision with" condition picks the ship that has been attacked but no cannon is selected, so when you ask the cannon to flash, the code is asking all of the cannons in the game to flash.

    An easy way to solve this would be to add the cannon to a container with the ship. That way when the ship is picked, the cannon on that ship is also picked.

    You may need to modify the way you spawn the ships if you add the cannon to a container as any object in a container is also created when the initial object is created.

  • You need some way to pick the specific cannon instance that you want to flash.

    Without seeing your game it's difficult to know what to do based on your setup. A bit more info will help.

  • FYI you still have the 8 direction behaviour on your sprite object.

    You can do this all without using a sprite object and scroll to behaviour also, just replace the two set sprite position actions to System "Scroll to Position", copy the X and Y expressions from your current set position actions, and within those expressions replace 'sprite.X&Y' with scrollx & scrolly.

    e.g.

    lerp(Scrollx,(Player.X+cos(stickangle)*100),0.1)

    lerp(Scrolly,(Player.Y+sin(stickangle)*100),0.1)

    If you do this, make sure you don't have the scrollto behaviour active on any objects.

  • Ah I didn't see it before, you forgot the < symbol before the -30 in your last condition before the else.

    Should be:

    (Gamepad.Axis(0,3)>30|Gamepad.Axis(0,3)<-30)

    Translated it is: First Gamepad, Right Analog Stick X-Axis is greater than 30 or is less than -30

  • Events look good. Upload your project file again.

  • Posting in the forum is the best way to get responses. There are plenty of people far more knowledgable than I. I'm usually always lurking

  • Manual Entry: construct.net/en/make-games/manuals/construct-3/plugin-reference/audio

    The Manual is very comprehensive and a good place to start :)

  • stickangle is just a local variable I created so you use the system set variable action.

    The conditions are just System Evaluate Expressions.

    Have a go at it and let me know if you can't figure it out and I'll put the project file up.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you want to limit it to L/R/U/D only then this will do it smoothly.

  • This will give you a 360° look around limited to 100px from the player position without the need for any behaviours.

  • The colour of your spritefont is set in the properties.

  • I might get around to doing a proper tutorial one day but a bit too busy at the moment. I'm sure if you keep exploring you will work it out :)

  • use "set layout scale" layoutscale+0.2 or -0.2.

    You can also add a condition that sets your max or min zoom levels.

    so

    On Mousewheel Up

    Layoutscale>0.4

    - Set layout scale - layoutscale-0.2

    On Mousewheel Down

    Layoutscale<1.6

    - Set layout scale - layoutscale+0.2

  • As do I. You can create a tag management system using arrays that will achieve some of the things you want from multiple tags. If you want to look into that there are a few threads on these forums that have some good info.