Lidro's Forum Posts

  • 9 posts
  • The linejump character seems invisible to the C2 debugger and I don't know the alert way of debugging. Is there a way around this problem that you can suggest?

    Also if there's some tutorial to reach the browser alert style debugging, I'll be glad to learn.

    I'll keep trying to adjust the swipe action.

    Thanks Kyatric for your help this far.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks Kyatric.

    Here is the dropbox link.

    dropbox.com/s/x5ny5s6qebnupnb/LuciaSwipe1.capx

    Don't worry about the unused variables or disabled block codes. I am concerned with the random2() function which is called whenever there is a swipe. It does not swap the item animation as i want.

    Also, I noticed that when I swipe, the debugging text2 displays sometimes that it has been triggered twice. I want that when you swipe, it displays a random animation index and deletes it so that it does not come up again. But it instead with some long swipes (or so), it is triggered twice to display and delete 2 or more animation indexes. How can I stop this undesired action.

  • Hello.

    I have a variable which loops thru an array and produces random array values which I want to use to control a Sprite animation.

    It does not change the animation and even tho the names of the animation are correctly written.

  • Your works look pretty impressing.

  • I just try to understand the logic, what i need is just to create platforms at random heights, and horizontals, but i cant find a solution for making the paltforms not too far one from another

    i have this:

    system create object "platform" on layer "game" X random(20, LayoutWidth - 400), Y ViewportTop("Game")

    system set nextplatform to ViewportTop("Game") - random(20, 400)

    this is what i have

    http://s10.postimg.org/kjbqfua09/spawn.jpg

    You could change your settings to this:

    system create object "platform" on layer "game" X random(20, LayoutWidth - 40), Y ViewportTop("Game")

    system set nextplatform to ViewportTop("Game") - random(20, 100)

    And you're good to go.

  • Or, even better, adding a condition directly to the event/previous condition.

    (By clicking "Add condition" in the "events" bar)

    Most of the times, this is more useful than adding a sub-event, but that depends on your needs.

    Thanks for that. I'll look into it.

    I love this software because it's programming made real easy.

  • OK. I got it. It was just to add a sub event either from the event tab or clicking the "add event" in the event style sheet.

  • Those are Actions. You want the Events.

    So where do I find the events?

  • I am using C2 r239 and I have searched for hours now but can't find where and how to make system display the option to compare variables. All I find there are there under "Global and local variables" are "Add to", set value, "Subtract from", etc.

  • 9 posts