0 Favourites

How do I

  • hello friends

    i have a question please

    i'm making a puzzle game for kids

    what i want to know is :

    when the kid choose any random puzzle to play how i can set every piece in this puzzle to be put in it's right place or it make another option like losing life or go back to it's place

    ( i mean that i don't know which puzzle will be chosen to be played so how to set them all previously ? )

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • You would have to find a way to identify the current puzzle with a global variable eg Global variable = currentPuzzle then in Start Layout assigns currentPuzzle = choose (0,1,2,3, n) then another global variable previousPlayedPuzzle = 0 in Start LAyout y When you make the choose of currentPuzzle you place previousPlayedPuzzle = currentPuzzle and leave it saved so that in some way when starting over is not the same puzzle

    More graphical:

    Define Globals:

    currentPuzzle = 0


    On Start Layout

    currentPuzzle = 1 or currenPuzzle = choose(0,1,2,n)

    previousPuzzlePlayed = 1

    Suppose you win the puzzle:

    currentPuzzle = 2

    previousPuzzlePlayed = 1

    Restart Layout

    Suppose you lose the puzzle:

    currentPuzzle = 1

    previousPuzzlePlayed = 1

    Restart Layout

    Hope this helps

  • UlisesFreitas thanks i will try this

    i meant that i don't want to set every puzzle piece in each puzzle manually by my hands

    i wanted every piece to know its logic place whatever the kid any puzzle even he keep playing same puzzle more and more

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
99 10,126
karshinkoff's avatar
Unread hot topic
56 4,727
MPPlantOfficial's avatar
Unread hot topic
0 Favourites
Why is Stencyl doing better?
44 16,851
Potato's avatar