LittleStain's Forum Posts

  • Updated the first post to include the link to the capx.

    Won't have time to improve upon and or split it up for the different behaviours, I hope some people will appreciate the effort.

    Edit (adding the names of people who showed interest):

    pixel perfick

    AllanR

    Boony

    jayderyu

    andreyin

    RookieDev

  • The horizontal background is moving in negative direction on the x-axis, you want it to move in positive direction on the y-axis.

    So replace x with y, replace - with + and replace < with >

    Trial and error will get you where you want to be..

    Most of the time it's better to understand what the events are doing instead of just copying them..

  • Beaverlicious, you probably mean the scrollto behaviour?

  • The infinite runner example has an infinetely scrolling background.

    It's horizontally ofcourse but the basic events are there.

    Translate the x-events to y-events and you've got an infinete vertical scrolling background.

  • you can get the touch movements angle with the expression touch.angleAt

    add a system compare condition to an is dragging event and you should be ready to go..

  • x = player.imagepointx(1)

    y = player.imagepointy(1)

    for imagepoint 1

  • Are you creating or spawning the thruster sprite as well?

    Are they in a container with the enemy?

    Why aren't you setting the thruster position before pinning, is it automatically at the right spot?

  • One way to do it is with the choose() expression.

    on enemy destroyed - set variable to choose(0,0,0,0,0,1,1,1,2,2)

    • if variable = 0 : don't spawn
    • if variable = 1 : spawn object 1
    • if variable = 2 : spawn object 2

    the chance of this being 0 = 0.5

    the chance of this being 1 = 0.3

    the cahnce of this being 2 = 0.2

  • Well, it seems like that tutorial has got the basics for what you are asking about.

    What is it you'd like to know specifically that you can't get from that tutorial?

    This question is actually probably not a construct2 question, but a php/mysql question. Maybe someone on this forum could help you get further, but the Construct2 part of the question is only how to set data gathered from an ajax call and maybe how to send data using Ajax.

  • This tutorial might give you some insight:

    Online highscore table ajax php mysql-tutorial

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • With a lot of conditions.

    Every exception to the rule has to be described in detail as not to interfere with the rule in general.

    What would probably be best is to have a completely new set of rules during recoil.

    So create a group for movement during recoil and one for normal movement and setting the normal movement deactivated during recoil and the recoil movement deactivated during normal movement.

    But Then again, I'm not sure what kind of control you'd like the player to have and what is happening now and why that isn't good, so maybe you could avoid it with a very simple event..

  • Ok.. so what I'm suggesting could work..

  • You could just bounce a ball offscreen and use it's y value to display the size onscreen, couldn't you?

    I'm not really sure what you are trying to do exactly in the game, so I might be wrong..

  • Disabling controls during recoil would take care of any further movement, wouldn't it?

    start ignoring user input it was called I thought..