lionz's Forum Posts

  • How is your game working, is everything just scrolling down? The way the coins will work depends on how you have the game working, that was just a starting point. On the example I set the X to a specific value but you can send the X value through the function as a parameter or choose a random X inside the function.The platform code seems OK, probably something overriding it.

  • The only way I can see that it's doing that is if you put the numbers in quotation marks which means they're now strings and it's sorting them alphabetically by first digit.

  • Are the platforms separate instances of the same platform object? if so, give them an instance variable or boolean that toggles when the event first triggers/score is given. Then add a second condition into the landed event that checks that the variable/bool isn't set.

    So something like :

    Event - platform on landed

    Condition - platform (family) > compare Y > platforms 'greater than' player.Y

    Condition - hasScored(inverted) --------- give score, toggle hasScored true

  • You can simulate left/right whilst a boolean is enabled then switch it off, or you could make use of rexrainbow moveto plugin.

  • Here is an example of how to use a function to create a line of coins.

    https://dl.dropboxusercontent.com/u/495 ... ecoin.capx

    Rep isn't given, you just gain it when posting on here or by doing the various badges (see profile).

  • Although on second thought, you might want to be able to aim at all times..so this works for reversing the angle of the gun...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bullet behaviour : set disabled

  • The screenshots don't show you opening any event sheets...are they grey when you start a new project or add an event sheet?

  • If you do for each XY value, current value = "monkey", it will look for "monkey". Once found, the array.curY is the Y position of "monkey".

  • Ya seems pretty good, not entirely sure what you mean by smooth though. I made a capx where you click in two spots and it shows the angle from the first click, seems fine! If you're working out the new co-ords after 0.2 secs timer it should work in a similar way. https://dl.dropboxusercontent.com/u/495 ... seang.capx

  • That wasn't meant to sound harsh but imagine if I asked you how do I make an RPG can you tell me all the code and send me a capx. Construct 2 is a tool for making your own games and they can be progressively built and large so it is unlikely you are going to get a response like 'here is a finished snooker game I made for you'. If you have attempted one and need some help in specific areas or you came across a bug then I am sure you will get a response. If you want some general advice then you may get some but my advice would be to start with the manual and look at the tutorial levels if you are new to Construct 2.

  • 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.