ikke2902's Forum Posts

  • I want to make the green bar move to the left when you tilt to the left. Same applies for moving to the right.

    This has to be played in Landscape orientation and it works perfectly by using the Beta orientation from the touch plugin on one phone position.

    Whenever I hold the phone differently, the green bar won't work like intended.

    The screen will auto rotate with you. However, the defined Beta orientation conditions won't change with the autorotate. This is troublesome.

    Is there a way:

    -to detect how one hold their phone?

    -to lock the screen on one position to prevent auto rotate? (Holding your phone up-side-down won't rotate the screen)

    I have addded a picture to make things more clear.

    ikke2902

  • I have been trying to use your loop to modify the witdh of this set of characters "Ii.,;:!'|`"

    I believe I have to do something with [5], but I don't know how to continue from here.

    Could you point me out to the right direction?

    Thanks in advance

    ike2902

  • Proxymity

    Thanks for the tip and it solved my problem.

    Cheers!

    Edit:

    I installed the .ttf file on my pc and loaded in the spritefontgenerator suggested by Proxymity.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Recently I have bought a sprite pack and there was a nice bonus which includes some font files.

    There is only a .ttf file. I don't have .css or whatsoever though.

    I have readed tutorials about using uncommon fonts offline, but that seems to need a .css file and some others.

    Is there a way to include this single .tff file in my project?

    Note: I know I can install that font, but it will only work on my pc.

    ikke2902

  • rexrainbow

    Glad to have this bug killed. Thanks for the fast fix.

    The expressions are working like a charm

  • rexrainbow

    So when I use For each col in row, I can't get row name by Expression:CurRow?

    I still don't understand how/when to use the expression CurValue. Could you explain a bit more in detail?

    I have attached a picture of my problems

  • rexrainbow

    Many thanks for taking your time to help me.

    The problem wasn't AJAX. It was me not understanding what kind of values CSV.CurRow and CSV.CurCol returns. Yet I know what they do.

    However, there is one thing I still understand.

    What does CSV.CurValue do?

  • I am trying to use the condition "For each col in row X" with CSV.CurCol CSV.CurRow or CSV.CurValue.

    I am having issues with understanding how CSV.Cur works.

    Could one take a look in my testing capx?

    At the end, I want to be able to find a string in the CSV file and to be able to sum values from the CSV file.

  • Ahh, thank you very much.

    That helps me a lot!

    Cheers

  • I don't know if you are switching layout or where you have stored the score value, so I suggest a robust solution.

    Set GlobalVariableScore to ProcessedScore.

    On the game-over screen you might have a text box.

    Text box set text to "Score " & GlobalVariableScore

  • I am trying to learn how to use the | operator, but I don't have much luck with it.

    Have tried to search, but I am still missing something important about |

    I have made a small simple capx for this, hopefully one can point me out where I am doing wrong.

    Pressing S will add 1 to global variable, Pressing D will substract 1 from the global variable.

    When the global variable is 0,2,4 or 6. A text box should show the word "Even".

    When it is 1,3,5 or 7. The textbox should display "Not even".

  • For someone who wrote an article on how to write a successful game.. You should have some idea

    But seriously this is too open ended a question. It's even to hard to define what is 'good' as opinions differ. Was flappy birds good? Then I could create one in 5 min using the C2 template

    When I saw this topic, I was thinking to answer it with flappybird aswell

    Flappy bird is in my humble opinion a bad game. However, it is very succesfull. Which I still don't understant why

    Anyway, I would say with C2 it is possible to make a succesfull game within a couple of hours perhaps minutes with flappy bird template.

  • Couldn't this be solved with the array Push front action?

    https://www.scirra.com/manual/108/array

  • Ahh, so I lose the delimiter after I have edited my csv file using libre office. I use notepad to do small edits now and the delimter isn't dissapearing anymore.

    Also thank you for pointing me to the right direction. I am using your csv plugin now. Cheers!

  • rexrainbow

    Thanks for taking your time

    The items has been loaded into the array, but I can't retrieve the correct value from it.

    When I pick valeu at array(1,0), I'll get all value on row X=1.

    However, I just want a single value at array(1,0). When I try other coordinatates, let's say (1,1). I'll only get value zero.

    How can this be solved?

    Here is another capx with some comments