LittleStain's Recent Forum Activity

  • This would work:

    On button clicked

    sprite set frame = choose(0,1,2)

  • Could it be that in your example the initial animationframe is 0, while for this to work properly it should be 1?

  • You could change the is overlapping with on collision and remove the trigger once..

    This example works, just drag and drop the sprites:

    https://dl.dropboxusercontent.com/u/485 ... rames.capx

  • Ah forgot adding an extra event/condition to set Exchange back to 8 if it's higher than that..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is one of those cases you use "system pick nth instance"

    From the top of my head it would be something like this:

    I'd add a global variable Exchange

    enemy is overlapping enemy

    system set Exchange to 0

    -- system pick nth instance = 1

    -- system trigger once

    system set Exchange to enemy.animationframe

    enemy destroy

    -- system pick nth instance = 0

    -- system trigger once

    system add enemy.animationframe to Exchange

    system set enemy.animationfram to Exchange

  • Well, then your question is answered..

    Good luck in creating the rest of your game!

  • Should work, if set up correctly, but if you got it to work your way, it's ok, right?

    "On collision" should only fire once as well (That is if there is only 1 object, which might be the actual problem)

  • You could have also used the "on destroyed" event to add to the score..

  • You mean something like:

    system every x seconds

    • create object

    If the question is more complicated, please elaborate..

  • I'd love to help you, but I don't have the time to create a complete capx for you regarding this matter and even if I did like I said above:

    Without knowing more about what you are trying to achieve, it would be very hard to answer your question in a helpfull way..

    If you want to use an array, you'd probably want something like a global variable to now the number of the text to display..

    on swipe right/left

    add/subtract 1 to global variable

    set text to arrayAt(Global variable)

    You could also opt for the dictionary object instead of the array and fill it with text seperated by tokens and use the tokenAt-expression.

  • You aren't referencing the "place" object to be used in event 9 and 10..

    So all "place" objects will respond to the action.

    So what you'll have to do is tell the computer which "place"-object you want the actions to apply to..

    There are many ways to do this, some easier than others and which one you'll want to use depends on personal preference..

    One way would be to use a "Dialbutton" is overlapping "place" condition in your events..

    This is probably the easiest at this stage, but is by far not the best way if you'd like to prevent troubles in the future..

  • Arrays, swipe-function and text-display are three seperate things..

    Offcourse you can connect these things through events, but without knowing more about what you are trying to achieve, it would be very hard to answer your question in a helpfull way..

    Could you clarify your question and share your capx/events, so we could take a look at what the problem actually is?

LittleStain's avatar

LittleStain

Member since 26 Apr, 2011

Twitter
LittleStain has 4 followers

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies