rollyzz's Forum Posts

  • Hello,

    I need some smart guy to help me with something. I have a game based on images and words.

    This is the .CAPX : 1Pic_1Word.capx

    All I want is to create a "Hint" button... When you press this button, a random letter will appear.

    I tried so many times, but I always fail.

    Is there anyone who can help me please?

    Thank you!

  • After some few hours i find out a fix.

    You can add variables into that string like this (i will use my own example):

    "{""c2array"":true,""size"":[1,2,1],""data"":[[["&MyVariable&"],[0]]]}"[/code:2u52jenv]
    MyVariable (Global Text) = ""CAT""     - with double quotes
    
    So the string will become:
    
    [code:2u52jenv]"{""c2array"":true,""size"":[1,2,1],""data"":[[[""CAT""],[0]]]}"[/code:2u52jenv]
  • korbaach Thank you sir!

    I understand how this program works, but I need, if possible, to add that variable there.

    Let me tell you in a detailed version why do I need this:

    I have created a game with levels that shows you different pictures. You need to write in a textbox what you see in that pictures (the answers).

    The answers are all variables like:

    answer1 = cat;

    answer2 = pool;

    answer3 = dogs;

    etc.

    If you don't know the answer, you can click on a button that leads to a layout similar to "1Pic 1Word".

    You see.. I need a way to add variables to that string.

    I don't want to add them manually, because I have many levels, and all of them are using that layout. The only way this should work, is to add that variable in string.

    So it will be like this:

    "{""c2array"":true,""size"":[1,2,1],""data"":[[["VariableHere"],[0]]]}"[/code:1k40ca9u]
    where VariableHere is a global variable from previous layout. VariableHere = cat; for level1 and pool for level2, and dogs for level3.
    
    Do you understand what am I trying to explain? Am I missing something? Let me know if I can explain you something else.
    
    Thank you @korbaach, @LittleStain
  • "&variable&"

    not working :(

    This is the source: 1Pic_1Word.capx

    All i want, is to change that "BEAR" into other variable, like in screanshoot.

    variable = TEST;

    so i should see just 4 black boxes. If i'll do like this : "&variable&", the code will go wrong, and will show me only 1 black box.

  • "variable" in Array is just a simple string..

    Is there any way to add a variable in that string? I mean.. if i write ""variable"" the answer will be 'variable'.

    I want to set that variable before loading.

    Is that possible?

  • Hello guys,

    Wanted to add a variable into JSON data to load, and i get this:

    Can someone help me please?

  • Thank you sir!

  • Hello fellows!

    I searched all the forum, and external links, but no answer! :(

    I don't know the correct name for "this game" but i tried every way. The last hope is creating this topic.

    All i want is to create a game similar to this image:

    I do have the answers and images! All i need is to make some random letters appear, but there should be the correct letters too.

    I don't know how to create this. Maybe a kind friend will show me something?

    Thank you!

  • Thank you sir!

    You saved me :)

  • Hello fellows!

    First of all, you should know that i am not a Construct2 expert.

    All i want is to create an app that allow you to login with your Facebook account.

    I want to create something similar to "Pixwords" - https://play.google.com/store/apps/deta ... ords&hl=en .

    I mean, the help button. If you don't know the solution, you can press a button named "Help Me!".

    When you press that button, the device will take a screenshot and upload it to your facebook photos, so your friends may comment the solution.

    I want to know:

    1. Is this possible in Construct2 ?

    2. Can you explain me how to do this? Maybe a tutorial?

    3. Do i need some additional tools?

    Thank you!

  • After some tests, i am pretty sure that the FPS is the main problem. When the fps goes from 60 to 55-58, the freeze appear.

    Is there any way to make the FPS stay to 55? or, a bit lower than 60? Or.. does anyone know the fix of this kind of problem? I would appreciate any kind of help! :(

  • Recently, i created a FPS-Text, and i think that's the problem. When freezes appears, the FPS drop from 60 to 50-55.

    I tested the example on a Samsung Tab 3, and my fps goes to 10 (lol).

    I forget to add.. I tested on Firefox browser. Maybe this helps someone figure out.

    What is the problem? Am i doing something wrong? The example is very simple, so it should work very well. Should i post this into the Bugs Section? Please, i am stuck!

  • Hey GenkiGenga, thank you for the reply! This is the small example that freezes. The big example have the same freezes like the one i've uploaded. What i mean is, no matter how many traps i have, the apk moves exactly the same. Is the bullet behavior the problem?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello guys!

    I have created THIS example. Like a summary i have...

    • Road (solid sprite)
    • Camera (Bullet + Scroll To)
    • Player (Bullet + Platform)
    • 2 traps.

    Platform have maxspeed, acceleration and deceleration to 0.

    All the bullets have speed 400.

    Every time you touch the trap, the layout is restarting.

    I wanted to create a platform mobile game, that can only jump. That's why the platform have mspeed, acc & dec = 0. The bullet behavior make the player never stop.

    The camera is a little bit to the right, so the player can see what's coming.

    My problem is:

    After i create the .apk with Intel XDK, when i play the game, i have some short freezes when the traps appear. Sometimes, the freezes can stay 1 second.

    When i test it on wifi, the game moves 2 times better.

    Could someone help me? I don't understand why it's moving like this. I mean, it's a simple example, with 5-6 objects. My phone is Samsung S4 mini, but i tested the apk on many others, and the same results. Or maybe some export tricks? I really appreciate, thank you!