LittleStain's Forum Posts

  • Yep:

    set angle = angle(bullet.x,bullet.y,player.x,player.y)

  • Something like this should work:

    Give the cupboard a boolean-instance variable CoatTaken.

    add set boolean to yes when taking coat..

    add a subevent to the cupboard rightclick event

    cupboard is not Coattaken- spawn coat

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Without families using pick nth instance should work also:

    System -> Pick nth Instance

    If 2 instances collide, picking instance 0 will pick the first instance and instance 1 will pick the 2nd instance

    ON collision bouncingBall with bouncingball

    Pick instance 0 ... do whatever

    Pick instance 1 .. do whatever

    if on pick instance 0 you set two variables to CollisionX = bouncingball.x, CollisionY = bouncingball.y

    then on pick instance 1 you can use your code

    System - create object sparkle on layer 1 at abs(CollisionX-bouncingBall.X),abs(CollisionY-bouncingBall.y)

  • While right-clicking on armycoat, you are also rightclicking on the cupboard, so you should add a condition to the first event to prevent it from running when you only want the second event to run..

    adding a is animation cupboardopenempty not playing, should do the trick..

  • So in the properties of all of your four layouts it's already event sheet 1?

    Then everything should be working..

    But if I misunderstood your question :

    If you want each layout to have their own event sheet and include the actions of the event sheet about the objects..

    right click on the event sheet attached to the layout and choose include event sheet..

  • It was well before

    What do you mean by it?

    before what?

    Why was it well?

    Or should I just ask:"What do you mean?"

    I am confused if there another way without attach

    You want the layout to respond to an event sheet without telling the layout which event sheet it has to respond to?

    Is there a way to control a kite without attaching a rope to it?

    Is there a way for a car to pull a caravan without attaching the caravan to the car?

  • To answer this question we need more information..

    to answer the title of this topic:

    there is an action set bullet angle of motion, there is an action set bullet speed..

  • attach the event sheet to the layout and add your events?

  • if you click on the layout in the right list (projects) - in the properties of the layout on the right you can enter the name of the event sheet you would like the layout to use..

  • If resul has the drag and drop behaviour you should first add the action "resul drag and drop - drop", before setting the location.

  • Wouldn't round(x), floor(x), ceil(x) or int(x) do the trick?

  • you could set the elevator immovable..

  • Either put the dots in a container with the object,

    or give the dots an instance variable and compare..

    on start of layout

    -- for each dot

    -- object pick nearest to dot.x,dot.y

    object set variable to dot.uid

    object.variable = dot.uid

    object follow dot

  • or even better