Fireche's Forum Posts

  • original size is 256x256. I use photoshop and exported it as .png file. I did not resize it before importing, I am using linear samping but point-sampling doesnt change anything. I also turned on pixel-rounding. Still..i try to resize it before importing but probably wont work aswell.

  • push

  • Fireche The username, password and database names will of course be changed once i figure it out hahaha <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> And there will not be anything worthwhile on there anyway. It is going to be a map for a volunteer group of people that pick litter. Interesting for hackers aye <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> What is PDO however?

    lennaert

    Nowadays you should use PDO instead of mysqli or mysql: http://php.net/manual/en/mysqlinfo.api.choosing.php It's more safe and it's the future <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz"> Also never put SQL-Statements into your query. You will get hacked easily <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

    You wrote in MYSQLI:

    $stmt = $con -> prepare("SELECT id FROM members where username='$username' and password='$password'")

    In PDO:

    $stmt = $con -> prepare("SELECT id FROM members where username = :username and password = :password")

  • You might wanna remove your password "$con = new mysqli('213.171.200.72','bloomdatabase','gLitterati1234','xxxxxxxxxxxxxx');"

    And better use PDO instead of mysqli!

  • You could make it a 2D-array and if you get a value at X2 then you set X2Y1 to "picked" or something. Or you create another array where you save the already picked values or you create 3 additional variables and save the value u get in var1, the second in var2 and so on and everytime u get a value randomized u check the variables if that value is already picked.

    So many ways..

  • mindfaQ gave u the answer already---

  • Hello, I have a problem that I have a very small sprite (check link) and it looks just fine in the editor. But as soon as I start the game it gets all pixelish because of its size.

    http://prntscr.com/6y5fp9

    How do I fix this? I want it to be clear at the edge~

    thank you

  • isn't it easier to store every piece in an 2d-array and when its replaced u check its neighbour cells or do I missunderstand it?

  • i like the idea of the website but what does ludust mean?

  • why dont you just post your .capx?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yep..was just curious if it makes any sense...

  • Hi,

    I am wondering how much sense it makes to create multiplayer games with ajax getting code from databases and updating informations every ticks. Any input is appreciated.

    Thank you

    e: I am not talking about games like chess where changes happen every 2-5 seconds. I think about an action game with several changes every tick.

  • looks interesting. I like RTS as u might have seen already: viewtopic.php?f=147&t=128989&p=908363#p908363

    and I am also working on my own atm. I subbed to your reddit aswell, gl

    I just gave it a try and I realised that it laggs everytime when selecting mulitple units.

    Question: The camera movement is really smooth. How did you achieve this? It doesn't work smooth at all testing it in a browser, so I am curious if you did something different or if desktop game is just better than browser.

  • you dont need 2 times to set text...just

    set Text to............................................................left(AJAX.LastData,1)

    i know..but..im a programmer and i like to ahve things seperated

  • that worked. I thought calling the function only works with Function.call().