klabundee's Forum Posts

  • Try using Chrome instead of Firefox..

    You can access chrome://gpu to see if webgl is working or not

  • OK..

    Got it working now..

    I dont know why it changed the color on the img..

    PS: email and balance are both global variables.. Probably also works using a textbox.text

  • Its not working.. haha

    I will try again later.. gotta go, lunch time.

  • >

    How would i go about doing this? Do i need to open a web browser for each time i update the balance? My intention was to do it from ajax.

    I was thinking to send 2 calls after each other to the server but then it can't really check if the email from the game matches the matches the email in the databse and then update the balance accordingly.

    Can i ask if anyone here can replicate what i'm doing by sending 2 variables from ajax and try to update the user and see if you manage?

    Regards

    Edgar

    Edgar, I used browser just to log the request to see if the expression was right.

    Look, I have a HTTP server running... give me 5 minutes I will replicate to see what happens.

  • > Which method should I use to secure it?

    This opens up a whole area of digital security. I'd recommend looking for a course covering the basics, because if you don't know what you're doing, you'll probably make something so insecure a passer-by can at least delete everything, or possibly steal all the data - and if you are storing people's personal data, you can become liable for significant fines if that gets leaked and you were negligent in your security measures.

    At a minimum look in to using HTTPS and protecting against injection attacks, but there's a lot more to it than that!

    Nevermind..

    I found the answer.. when requesting over HTTPS the only not fully secured part is the domain.. after the first part / it is indeed secure.

  • > Which method should I use to secure it?

    This opens up a whole area of digital security. I'd recommend looking for a course covering the basics, because if you don't know what you're doing, you'll probably make something so insecure a passer-by can at least delete everything, or possibly steal all the data - and if you are storing people's personal data, you can become liable for significant fines if that gets leaked and you were negligent in your security measures.

    At a minimum look in to using HTTPS and protecting against injection attacks, but there's a lot more to it than that!

    True but I'm thinking about security between mobile and server..

    Any method requires data from device to validate the autentication.

    My concern is more about if this data could be intercepted.

    Does HTTPS encript all this information?

    If yes, its fine for me..

    About injection and everything, yeah, I know.. back when Mu servers were popular I had to learn about it. Never trust the client input

  • 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 a question that may fit here..

    So, I have a PHP server aswering requests from AJAX.

    Which method should I use to secure it?

    After login send a token to the client and every request/post send the token for validation?

    Can this token be intercepted?

  • For each Enemy

    Every 0.5 seconds

    Spawn Laser at Enemy X and Y

    This?

  • I guessed it was C2, 'cause were in the C2 forum...

    (Yeah, I get confused sometimes, too)

    True, my bad.

  • Are you using C3 or C2?

    If C2 just go as brunopalermo said..

    If C3, just create a variable as boolean.

    And on each touch control compare if: is true

  • Well.. you can use a boolean and compare on each toucheable item if its true or false.

    So, when you need, turn it to false and after to true again.

  • Can you show us your events?

    If it was mine.. I would go for an array to store the amount of enemies for each wave.

    For example

    Wave 1 = 10

    Wave 2 = 20

    Wave 3 = 27

    Create a variable to store the array index value (the wave number)

    And now, create a for using the index value to get the wave amount

    So every time it calls this functions it will look to the array to create the right amount of enemies.

    Don`t forget to increment the index, otherwise it will always create the same amount of enemies for all waves.

  • Compare Enemy Defense and Hero Damage

    If Enemy Defense >= Hero Damage

    - Do nothing or just show "miss"

    Else

    - Subtract enemy HP