LittleStain's Forum Posts

  • remove the system every tick condition.

    move the system set acorncount to above the set text field.

    The order of events and actions can influence everything.

  • That's only setting the text, not the variable itself.

    use a system trigger once

    add a line system set value Acornreturned to AcornReturned+Acorncount.

    You could just set the text to "Acorn: "&Acornreturned

  • I don't see where you change the AcornReturned variable?

    So it seems that stays at 0.

  • I can't open the capx, because it has a third party plugin time manager istalled, I'm sorry.

  • You can create sprites during runtime. What is the added benefit of cloning?

    If you'd just like to name the sprite, give it an instance variable name and set it to the name you want so you can call it directly from your eventsheet.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • set text: "AcornTotal: "&(acorncount+acornreturned)

  • if you select new project inside construct2 there is a template for infinite jumping, could be a good place to start..

  • What ramones said:

    your animationframes are not all the same size. If you put the origin of all frames to the bottom all issues are solved.

    Even better would be to pin your animation to another sprite with the platform-behaviour.

  • intances of the same sprite always have the same animations.

    If you set the animation to have more frames and set the speed to 0 you can change between animation-frames by using set frame.

    Load image from url loads into the frame the sprite is currently displaying, so if you want different images loaded make sure you load them on different frames.

  • You will have to use the touch plugin to make use of the information from the accelerometer and the inclinometer.

  • from the tips for posting in the how do I section.

    Please allow 24 hours for a response. Replying with "can't anyone help?" after 20 minutes could be misconstrued as rudeness, since it is impossible all our forum visitors could have checked the thread in that time. If you're seeing a lot of views and no replies, don't forget we commonly have more search crawlers (e.g. Google) indexing the site than real users, so the views count may be inflated.

  • Not a function exactly like that, but there are ways to check if there is a platform.

    You could choose to create coins only when platforms are created and only in the same (relative) position of the platform.

    An example:

    make an instance variable for the platform (coins)

    on platform created: set coins to floor(random(4))

    add a subevent

    sytem compare two values: platform.coins = 1 :

    • create coin at platform.x, platform.y-25

    and another

    sytem compare two values: platform.coins = 2 :

    • create coin at platform.x-(platform.width/4), platform.y-25
    • create coin at platform.x+(platform.width/4), platform.y-25

    and another

    sytem compare two values: platform.coins = 3 :

    • create coin at platform.x, platform.y-25
    • create coin at platform.x-(platform.width/5), platform.y-25
    • create coin at platform.x+(platform.width/5), platform.y-25

    This way they are also evenly placed along the platform.

    If coins is 0 no coins are created.

    Ok, I got a bit carried away here, the code might be a bit difficult for a beginner, but the best option I think is creating the coins on creating the platform, that way you can place them within the platform width.

  • You can set the size in the event sheet.

    So in the event mario changes to big mario - set playerbox size width :16 - height: 32

  • Probably the sprite's x-coordinate is never exactly 350.

    maybe you should check if the x-coordinate is between 352.5 and 347.5.

    or you could make sure the start coordinate of the sprite is exactly 0,5,10,15 etc. at start of layout

  • | is a logical OR operator

    put it between the animationnames and it might work.