thatserafimkid's Recent Forum Activity

  • ...

    And you need to fix your json file. You are missing quotation marks between your fruit names.

    It will work once you fix those two things.

    ...

    I already told you why it's not working. You can't expect people to just fix your issues for you. You need to learn why there's an issue and be able to correct it.

    Find your json file inside your project open it in notepad and add the missing quotation marks.

  • That is the index of you text you are comparing. codecombination is your text. The number after that tells tokenat where to look inside the text to compare that character.

    So codeCimbination is a variable that equals "201"

    The first character in that text is at index 0. So index 0 of the text "201" is eaul to "2", Index 1 would equal "0"

    So what the code is doing is checking to make sure the frame of group A is the same as index 0 in this case "2", the frame in group B is the same as index 1 which is "0", and frame of group C is the same as index 2 which is "1"

    You can read back on a post I wrote before in this thread that explains how tokenat works.

  • Hunter

    Here try this. Instead of using different animations you can just use different frames of one animation. That way your animation will match your code number and you can compare it that way. You'll see I added the code groups into a family that way you can control the animation for any of the groups in one event. All it does is add one to the frame one you click on it, and it will revert back to 0 if you click on it and it already equals 2.

  • JeffreyT

    I put together an example for you. Its not the most elegant thing in the world and it has its limitation but I figured it might give you some inspiration. I have a circle that has 4 frames of animations, one for each quadrant, then I have a mask that rotates around revealing the circle a bit at a time. The mask only works if its the same color as the background. So if you are planning on putting your clock on top of a solid color this could work for you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are you referring to the app ID?

    You should do com.yourname.yourappname

    you can use a company name or any other name instead of your own name of course.

  • If you are using it to set gravity to a constant number then you don't need to set it every tick. Key is down and else will run every tick. That's why I suggested using key pressed key released. that way gravity is only set once when true. You could have gravity at 5 default to start the game that way its already 5 before your user has to press and release a key. Then on key press it will change to 0.

  • You'll want to export your game using the Cordova option, Then follow this tutorial to build for android https://www.scirra.com/tutorials/809/ho ... -crosswalk

  • You can try

    Speed ≤ MaxSpeed >> Set Text: Sprite.Platform.Speed

    You wouldn't need the every tick condition.

    You ofcourse could use that for your other actions rather than setting text.

  • +1 thatserafimkid

    Yea wasn't sure on the inversion. I am better when I have it up in front of me

    Aha no worries. Same with me. I just happen to be at my computer ready to test.

  • Gunter

    The only problem with your code is that will not spawn a bullet every time the W key is pressed unless its been 3 seconds since the last bullet spawned. So for instance the first time you shoot you'll have to wait 3 seconds to see anything.

    Klungland

    You could however combined W pressed and W down to achieve what you want:

  • This is what I meant. You can test for when the arrow keys were released.

    PhoenixNightly

    Trigger events can not be inverted.

  • Use Load from JSON string AJAX,LastData to load the json file into your array.

    And you need to fix your json file. You are missing quotation marks between your fruit names.

    It will work once you fix those two things.

    Also as a note you could do your sheet changing code as below to eliminate having to reset the variable each time.

thatserafimkid's avatar

thatserafimkid

Member since 28 Mar, 2014

None one is following thatserafimkid yet!

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies