LittleStain's Recent Forum Activity

  • have you seen the endless runner example shipped with construct2?

    It has an endless background, implementation would be about the same..

  • If simulate match restarts the layout, you need a way to store the values in the array before doing so..

    Maybe the persist behaviour could help, or using global variables instead of array values, or webstorage..

  • Create the textbox and in it's properties set enabled to no

    keyboard on / pressed

    • textbox set enabled
    • textbox set focussed

    i'm not sure what you mean by pressing " /roll x " so if you could explain that further?

  • system every x seconds - wall set speed to wall.speed+10

    you could ofcourse clamp this to have a maximum speed

  • This isn't a timer, but a wait action..

    Could be better to use the timer behaviour for something like this though

    give the player timer behaviour

    instead of the wait action use start timer for 10 seconds

    and on timer - setthe actions now below the wait action..

    I would actually choose to put all events concerning collision with enemies in a group and de-activate that group during the "invincible" period..

  • Ok, so it should be sometthing like this?

    set array at x,y to Array.CurValue+(whatever you want to add)

  • To do that use push or insert actions on the array-object..

  • I guess the issue is the sprMomo isn't referenced in the event, also if you are using set position the bullet behaviour will already be enabled,..

    I'm not sure what MomoIsInsideCannon does.. Or what Momofired Does..

  • Why not set the bullets angle of motion to AngleToAimAt instead of sprcannon degrees?

    And any reason why you are setting position of sprMomo instead of spawning it?

    Problem might be you are not referencing sprMomo in your events..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you are expecting the sprite to point at the mouse, this code won't do that..

    you are setting the angle of the cannon to the angle between mouse start and mouse end (to put it simply)

    this means the cannon doesn't take into account where the mouse is..

    if you left click and move right the angle will be 0

    if you left click and move left the angle will be 180

  • Strike that..

    guess I understand what you are trying to achieve..

  • Why not use a placeholder sprite and when image selected pin the animated sprite to it?

    The placeholder sprite would have all the events..

    Another way that comes to mind is putting all sprites in a family and having the events on the family..

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies