LittleStain's Forum Posts

  • going straight down could be done with bullet behaviour, right?

    Now the semi loop..

    What do you want it to look like?

    Could it be done by creating a sprite, pinning to it and using rotate behaviour?

    It's all about creative thinking, how do you make it look right?

    It might even be easier to create it with half a sine movement..

  • Pin position only and set the sprite-rotation through event/action?

    So something like:

    System every tick

    sprite set angle : round(pathfinder.angle/5)*5

    sprite set frame: round(pathfinder.angle/5)

    Should work if 0 degrees is frame 0, 90 degrees is frame 18 etcetera..

  • > What part do you have difficulty with?

    >

    > The movement, the animation, the disabling of controls?

    >

    Just the movement at the moment.

    You create the movement, right?

    What should the movement look like? (It's all visuals)

    Could you recreate it with, sine-behaviour, bullet-behaviour, rotate-behaviour or any other behaviour or is it nescessary to program the movement through event/actions?

  • The link is wrong..

    Says I need permission from the owner to get to the file..

    I always use this for movement and animation:

    Easy keyboard setup capx

  • Would be nice to know what "Doesn't work" means..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What part do you have difficulty with?

    The movement, the animation, the disabling of controls?

  • korbaach

    Beautiful!

  • A loop is run completely in one tick..

    Can't get any faster, I think..

    That is, if several thousands of objects should be created at the exact same time..

    I don't think the several thousands of objects will be on the screen at the same time, so maybe you could split it up..

  • This works for me:

  • you wouldn't need a for each there, it probably does more harm than good in this case..

  • why not only set the z-order when needed instead of going through all objects every tick?

    "on collision" should probably work, but you could ofcourse use "is overlapping"

  • > By the way, if it's possible for all three to be on screen at the same time, don't forget adding an event to stop the loop when that happens, or you'd have an endless loop..

    >

    Regarding the STOP LOOP do you mean like this?

    (as it seems to work without it)

    It's just a precaution, but I would keep it there if you are going to use infinity..

  • The way you explain could be done this way:

    Add Global variable "Groups"

    system every 0.05 seconds

    set variable Groups to : choose(1,2,3)

    set group1 deactivated

    set group2 deactivated

    set group3 deactivated

    -- If variable groups is 1

    set group1 activated

    -- If variable groups is 2

    set group2 activated

    -- If variable groups is 1

    set group3 activated

    It would probably be much easier to call a function on attack with a parameter set to choose(1,2,3) and base the attack on the parameter, but well..

  • More people might be able to help you, but you are using the third party plugin platformplus and because of that they can't open your capx..

  • What is this collision supposed to do?

    If there are no events/actions attached to these collisions, nothing happens, right?