lionz's Forum Posts

  • The best way could be to use an array and store the answers. If it's always going to be numbers then you don't need to store the numbers and instead use the row number of the array as the number with the answer stored. If the question is going to be eventually something other than a number then yes store question and answer using two columns.

    To pick the random number you would generate using something like floor(random(100)) which picks a random number from 1 - 100, then grab the expected answer from array position - array.at(num) where num is the number you just generated. So if the number is 18, array.at(18) picks the answer from row 18. If you stored both the question and answer then you'll need to also pick the column so array.at(num,0) is question and array.at(num,1) is the answer.

  • Your post is so big but still doesn't really say what you want help with. Do you mean you want to check if a user speaks correct Spanish?

  • You need to destroy the object when you pick it up, and create it when you drop it.

  • I guess this event wasn't true when you were testing it? Did the above suggestion fix it?

  • Do you have other events that change the boss speed or set the run animation? With just those events shown it should technically work.

    A way to completely avoid trying to play both animations at the same time is to add a condition to the 'is moving' event which is 'tired animation is not playing' so it will only play run when tired is not playing.

    However it would be good in this case to find out why it's still playing run anim when speed is 0, so that's why I asked about other events.

  • You didn't show us where you set it to disabled. If you mean the player always starts as var=disabled then maybe you have more than one player instance and it's picking the wrong one or there is a small typo. I would instead use global variables.

  • There I made something dropbox.com/s/kswepaunmu9ygtd/platformturn.c3p

  • Well your condition sounds like if both turn animations are playing at the same time which is not possible so that needs to be an OR. If the turn works mirrored then you can just set one turn animation and work with mirrored, that's why I mentioned it above. Remember also to add the condition when pressing left/right to start the turn about which way you are facing or you can keep pressing the same direction and it will spam turn.

  • I think Wario is instant like Mario but the other game I checked out and see what you mean. My approach would be something like have variables for facing direction or you can use 'mirrored' condition, then if you are for example facing left, you say on right key pressed play right turning animation. Then for normal walking of the right key down you add a condition 'right turn animation not playing', so it only plays normal walk if you are not in the turning animation.

  • Wouldn't a turning animation slow the game down? A player wouldn't want to wait for the character to turn before moving, that's frustrating and it should be instant.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's because there are 4 player Sprites on top of each other.

  • Yes makes sense, you are using rows/columns in a reverse manner to how I do it but still has the same result.

  • set text to array.at(array.curx,0)

  • For the array you can add an instance variable (var1) to the clickables where the value relates to the array row so first one is var=0, second one is 1, third is 2 etc. You then need a second instance variable on the clickable for its colour (var2) like gray/orange or 0/1 which would change when clicked (probably logic you already have in the event sheet as it changes to orange)

    To toggle the colour and update the array you would use - clickable on clicked, set array.at(self.var1) to self.var2. To update the clickables together when you load data into the array you can use - for each clickable set var2 to array.at(self.var1).

  • Hmm not sure, that's entirely different to the question from the original post. You could post again asking about scrolling and maybe someone can assist. If you have to scroll though you may have used too many save game slots.