Microbex's Forum Posts

  • I did exactly what you did before reading your comment, but still not working. I can not get my head around it. Could it be because of the Repeat/Loopindex?

  • Hmm, I am not sure of anything anymore. I just can't get it to work.

    Tried serval ideas. Made a FSM for the particle smoke and triggered by distance traveled of the Missile.

    Then I gave the particle the UID of the projectile and tried to destroy it with its Missile counterpart. It did not work either.

    How would you guys go around this setup?

  • I did try containers, but that will delete all the elements in the container and not only the smoke.

    I was not so lucky with the UID either, but I will give it a try again. Thanks

  • Hi guys,

    I have this missile that has a particle smoke trail attached to itself on creation.

    The problem is when I want it to disappear, it will trigger newer created particles to disappear as well.

    I would love to get some feedback on why it is happening. Link to file below - Thanks :)

    drive.google.com/open

  • Thanks guys! That worked out nice. :)

  • I have tried that - I am doing following:

    "Have a variable called 'SinWave'

    On Every Tick - Set SinWave to Sin(2)"

    Still comes up with a static number.

  • Hi gentlemens.

    I need a variable that has an oscillation number going back and forth from -x to +x.

    To be honest, I am by far no math wiz, but..

    SIN(0) seems to be the answer but I can not get it to work.

    I suppose I have to use an every tick update, but I only get a static number?

    Thanks!

  • Thank you so very much dop2000!

  • Hi guys,

    I am making a twin-stick shooter using my gamepad. The left analog stick is set up to make the player move on the layout and right you steer a crosshair to aim for the enemy.

    The layout is bigger than the screen view so the player has a 'scroll to' behavior.

    The ting is that I want the crosshair to be fixed to the screen (like a mouse pointer) so I put the crosshair on the GUI layer (that does not have parallax assigned.)

    The problem is when I want to spawn a bullet (player spawn another object) and set the bullet angle to the crosshair position x and y, the aim is pretty way off. I guess that having the player and crosshair on different layers with different parallax properties that makes the problem.

    How do I get around this problem? Thanks!

  • I think this is easy to incorporate if you are new to all of this. Glad I could help.

  • Ah, ok. Well there is lot of different ways to do what you want to achieve.

    I would make a layer on top of all the other layers and turn the visibility on and off when you need to show the message (text/sprite/whatever). You can have a lot of different message layers like that.

    Btw, I forgot to mention in the last post that your pivot point on your Sprite has to be centered too.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Was it your player that had to be centered? I am not sure you really want to use Scroll X/Y - that centers your camera on the object.

    'Set X' to 'ViewportWidth(0)/2' and 'Set Y' to 'ViewportHeight(0)/2'

    That will center you sprite to your screen. The (0) is the layer number I guess.

  • Hi guys.

    Has anyone of you guys made a GOAP in C3? I would like to know how your setup look like and what is bedst practice for a GOAP. Thanks :)

  • I will give that a try, thanks mate. :-)

  • Hi, I want to make a remake of the old arcade game Gauntlet, and i startede with the ghosts AI. I put an '8 dir' & 'solid' behavior on the ghosts, and at first it seems to work out fine. But when they collide with my player, they start to push the player around. I know the ghosts just needs to get destroyed on collideing with the player, but other enemys will have bash me while standing next to me. Have a look at link if you like.

    dropbox.com/s/m1udos52c3gf59c/Gauntlet.c3p

    Any good workarounds? Thanks guys!