LittleStain's Forum Posts

  • Variable1 is just a global variable, like your Box and Box_Health..

    The action is "system set value"

  • I'm not sure what you mean by fetching..

    Do you mean setting the global variable?

  • in the text-entry box after choosing set variable type : choose(1,2,3,4,5)

  • Seems like the wait actions are screwing up your code..

    I would suggest using the timer behaviour instead.

  • There are many ways..

    One would be to put the items in a family - a create family would take a random item from the family

    Another way would be having a variable and setting it to choose(1,2,3,4,5) if all of them have equal oppurtunity to be created

    So:

    on box destroyed

    set variable to choose(1,2,3,4,5)

    --- if variable = 1

    create item 1

    --- if variable = 2

    create item 2

    --- if variable = 3

    create item 3

    etcetera

    -- variable

  • box on destroyed

    box spawn item at imagepoint

    If you want to create something anywhere on the layout

    box on destroyed

    system create item at x,y

  • Create an event:

    Sprite pick nearest to

    It's just one of the many conditions

  • The candle in my post is from the linked topic, it was created with the flag-shader..

  • And if their origins are not the same using the boundingbox-coordinates could be used to check..

    If one of the sprites is moving (which is almost certain) it must be said that there is hardly any chance of the coordinates to be exactly the same, so you might want to work with an expression checking if the sprite is within a distance of for example 5px of the other, and set it to the exact location if so..

  • I'm quite aware of what an excavator is, I was hoping for you to show how far you've come creating one, so we could give you some pointers on how to make it better.

    Is there a reason you want to use physics to create it?

    What are your plans for it to do in the game after you have created it?

    In what way do you want the player to control it?

    does the player control the bucket, the first arm, the second arm and how?

  • I'm not sure, but it seems browser alert will always show the webpage/adress it is coming from..

    If true, you might want to look for a different solution to deliver the message..

  • Best way would probably be to create an animation, but there are other possibilities like shader-effects..

    For example, in this topic is the flag shader, which with the right image might produce a nice-looking flame..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So the question is: How would you differentiate between the two possible events?

    I guess one way would be to determine the direction of the movement of the touch..

    If it is more or less horizontal - do the menu drag/swipe

    if it's more or less vertical - move the menu-Item..

  • LittleStain

    Thats all we have set up sadly. You could try a prepaid credit card from a general store/pharmacy maybe?

    I'm not even sure we have that here in the Netherlands, haha..

    I can buy an empty one from my bank for about 15 euro's, but as I'm probably only going to use it for this purchase, that's a bit much..

    I'll just keep trying to get the Paypal thing working..

  • There must be an easier way but..

    system every tick - set Globalvariable = enemy.count

    for each enemy

    enemy has not line of sight - subtract 1 from GlobalVariable

    system compare two values - GlobalVariable = 0

    add action