lionz's Forum Posts

  • I can see what's gone wrong here but it's getting a little messy. You should really override everything that happens with the ship's state as primary comparison.

    Space pressed > if ship anim=2 then spawn a laser and set laser state to 0

    > if ship anim=0 then spawn a laser and set laser state to 1

    At the moment every time a laser spawns its state is 2 (default). You have the set state of the laser action under the change ship state event, this is before a laser has been spawned so will not affect anything.

  • Hello!

    From here :

    1. We want to help, but we're not here to make your game for you. It's best not to ask too much!

  • No problem, the link I provided lists possible alternatives in the discussion, check it out.

  • Probably stored in your browser cache.

  • What can be more efficient than calculating the angle of point A to point B? Seems like a fine method to me...

  • Dropbox won't work anymore, I started a thread here :

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Give them family instance variables where 1 is small, 2 is bigger, 3 is biggest or something. When they collide compare the variables, whichever is bigger destroys the other one.

  • You need to include "Structure" in "Store", not "Store" in "Structure".

  • On the overlap event, you can set a variable to box.pickedcount, which will be the number of boxes overlapping the mask.

  • Open documents, you can use the File Chooser object: https://www.scirra.com/manual/182/file-chooser

    Date/time from the device, there is a plugin to grab this data: plugin-system-date-and-time_t63492

  • Create a global variable 'debug'.

    Where your debug events are for displaying debug text, add a condition if debug=1.

    Then toggle debug to 0 or 1 before you start the game to enable/disable debug.

  • The usual way is 'Bomb' on collision with object 'Block > Destroy 'Block'

  • The simplest way to do this is on any touch create a different invisible object for detection at touch.x, touch.y and destroy sprite2 when overlapping the created object.

  • Again this would just be set functions responsible for creating a number of certain types of platforms. It gets complicated when you are wanting to create different types on the same horizontal line but this can be done by passing parameters through the function for platform type. The platforms are unlikely to ever overlap because you are choosing your own X,Y co-ords so you would always set them up a good distance apart on the X or Y.

  • There are loads of ways to do this. For the basics :

    groupnum=0

    placeY=0

    function CreateCoin

    while groupnum<8

    Create coin at x=0,y=placeY, add 1 to groupnum, add 25 to placeY, run Function CreateCoin

    That will create 8 coins that are in a straight line upwards, 25 pixels apart.

    You could also create and add to or subtract from placeX rather than X=0 to move them across the screen slowly.

    Based on the values you are adding to or subtracting from X you could expand this into more functions called 'CreateLine(the example), CreateLeftToRight, CreateRighttoLeft' to call different patterns. Each function could run based on a random number you 'choose' and therefore each shape of coins would be chosen at random.