Coin-coin le Canapin's Forum Posts

  • If your bullet comes from a gun sprite or something like that, you can also use an image point instead of using this method.

  • It's not possible. You have to use a variable.

  • Thank you for your reply. I don't really like the collision polygon as a subtle difference between two impact point result in a very different trajectory.

    That said, I guess this is the only way to have the bullets bounce inside. I'll see what solution I have to choose as I'm not sure if I want this behavior at this time.

    The issue that I was talking about is still here : try messing around with bullets from behind, sometimes they bounce inside, sometimes they pass through. Why is that ?

  • Oh, I misread mindfaQ message, I was writing some or less the same thing.

  • Hi.

    There are some distortion effects in Construct 2.

    Like "warp ripple" or "warp radial".

    However, they use a certain angle in order to create these effects.

    For example, Warp Ripple seems to move at about 45° and we can't change this.

    I would like such an effect with a custom "angle of motion" in order to create a directionnal ripple on an energy shield (warp ripple seems perfect, the angle thing is the only lacking parameter).

    Example : http://canapin.com/construct/tolilo/15/

    Use T F H keys to move the red character, mouse to aim and click to shoot.

    Take the armor bonus and shoot at the green walls or ceilings to make the bullet bounces until it bounces on the shield. You'll see the effect I'm achieving right now, and I would the ripple angle to be relative to the angle of impact.

    Is it possible in any way, or do you know a custom effect that would do the trick ?

  • Or instead of setting booleans, couldn't you set a numerical value to your variable?

    Like :

    Boss -> set attackType to int(random(1,3))

    if attackType == 1 do…

    elseif attackType == 2 do…

    elseif attackType == 3 do…

    I don't know if it could help you, but you can take a look to the switch plugin :

  • Hi.

    I want my character to have a shield shaped like this :

    It will have a physic behavior and I want a somewhat perfectly circular collision shape. It will also have random orientation (could be 0°, 40°, 157°…).

    I guess this is not possible, but what is the best way to achieve such a thing ?

    Plus, is it possible to make bullets pass through in one direction (from the inside) but bounce on the other direction ?

    And would it be possible to make the bullet bounce inside instead ?

    edit : I've came up with something like this which could fit. However there is an unexpected behavior :

    When a bullet is not overlapping the shield, it enables the collision with the shield of ALL existing bullets. I tried to add a "foreach bullet" on my condition, but this doesn't work. Any idea ?

    https://www.dropbox.com/s/g6or95kbobix2 ... .capx?dl=0

  • Can you provide a capx ?

  • You can declare a variable "down" set to 0

    And then :

    Gamepad : Gamepad 0 D-pad down is down

    --> set variable down to 1

    else

    --> set variable down to 0

    On layout start :

    --> set variable down to 1

    Variable down == 1

    --> (your actions)

    I could me more precise if you tell me what pressing the down button is supposed to do

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe try pressing A or another button before using the d-pad ?

    Are you selecting the right pad number (0 if you have only one pad plugged in) in your condition ?

  • Joe7 Discovered this plugin today, nice way to get random indexes from an array. Thank you also nutmix, changing dynamically the random array width is very useful (and should be mandatory in such a plugin :p).

  • You could use the timer behavior instead of the wait action.

    edit :

    https://www.scirra.com/tutorials/56/how ... ait-action

    If you haven't read it, give a look. I think it explains why your events don't work as intended.

  • I'd say you can't. You'll have to use sprites if you want to set properties on each car.

  • Take a look at this ? https://www.scirra.com/manual/163/line-of-sight

    Never used it thought.

    Probably won't help you to cast shadow over a wall, but could help you to hide the walls you're not supposed to see.

  • I removed the physic behavior but that doesn't change anything. I also removed the background, no improvement either. :/