Jump to content


  • Content Count

  • Joined

  • Last visited

About barbara

  • Rank

Recent Profile Visitors

1208 profile views
  1. Hi, i have just finished my first game, first of all thank you all! Couldn't do it without your help. It's not what i wanted it to be, but i feel like i need to move on. Now i wanna try to "move" it, you know? i will put it in the play store (with some ads on it) and in my web site, but i wonder what could i do other than social network to move it around and try to earn some money (just try). Since you all help me so much i would love to hear your advice about how to do it. And i would also love to show it to other developers like you so i can get some feedback, i don't know if here
  2. Worked perfectly! Many thanks! XD
  3. Hi, I'm making a platform game, i have a player that can bend himself so it can go throw an obstacle that is placed in a low position. The problem is that if the player stops in the middle of this obstacle it goes up again and appears through the object. I want it to go up only if there's no obstacle that collides with it, but i'm out of ideas, i don't know how to do it. My player in anchor is set to (0.5 , 1), and then i change the setSize property when it bends and again when it goes up so the collision size changes. Any ideas? Thanks!
  4. ok, thanks for your answer, i will try in a cocoon forum then.
  5. Hi, i'm creating a game with phaser and i converted it in an app with cocoon so i can put it up in the play store. Now i face a problem, i don't know how to store simple data, as levels, lifes, etc... so when the user exits the app and get back in can continue playing where it was left. I found some info about it but it seems pretty difficult as it is in native android (wich i don't know very well), i don't know if there are more options, i'm looking for something easy, at least to start. Many thanks.
  6. Hi i was trying what you told me, but the problem persisted. Finally i discovered it, it was a phone issue, sorry for post it here, i was desperate. In case anyone need it, the problem was i have activated in my phone a touch gesture that was interfering with the browsers touches. It was i three times quick touch to zoom in the screen. Thanks for your time!
  7. onDown, onUp, OnOver and onOut, have all the same issue. The command onTap works perfectly, but i need the button to answer to a "hold" behavior too, so the player continues going right or left while the button is down, so onTap doesn't fit the needs. It could work for the jumping behavior, but only for that one. It seems to me like the problem is not with the phaser code but maybe with the browser or the device, i was hopping i could insert some code that overwrites that problem.
  8. I'm creating a platform game in phaser, and i'm using buttons for control the game as in this example: http://phaser.io/examples/v2/input/virtual-gamecontroller, the same code. When i open it with my phone, an "bq aquaris x" or with my older one a "samsung galaxy note 2" the buttons doesn't respond to a quick touch, i need to hold them a little so i get a response. But when i try it in other phones, as a "samsung galaxy 4" or in a tablet, either "samsung tab "A or an ipad(i don't know the model) it works perfectly. I can't find the problem, so i'm not able to fix it. Any ideas why
  9. Are you using phaser? In that case i think that what you are looking for is: if(sprite.touching.down){ doSomething}
  10. Hi, I'm making platform games with phaser, and to do so i prepare my levels in inkscape, i give a label to each image so when i end it i finally get an .svg document with an x and a y for each labeled element. Then i replace and delete all the useless text with my code editor till i get it in a .json format so i can pass it to my game as a new level. Is a repetitive and boring work, i hate it. So now i'm thinking in write a little "program" or script to do it. What i really don't know is how to pass through a text that it isn't an html or a php. i would prefer to code it
  11. Did it! Finally i need to use ajax to load a php page with the conexion to the SQL DataBase and pass the variables in javascript throught the get method. In case anyone has the same problem... Many thanks for your Help! Couldn't do it without you!
  12. Finally i found the conditional code, but now i can't update my sql as i want, these is my code: <script> //Store data in browser cache var lastLevelEnabled; function dataInLocalStorage(){ if(localStorage.lastLevelEnabled){ lastLevelEnabled=localStorage.lastLevelEnabled; }else{ lastLevelEnabled =1;localStorage.lastLevelEnabled = lastLevelEnabled; } } </script> [insert_php] //check if the user is logged with wp code if(is_user_logged_in()){ echo "<script> console.log( 'there is a user logged' );</script>"; //This is how wp gets the
  13. The localStorage works perfecty! Thanks! I'm now able to connect to my sql through php get the información of a user in the new column for my levels and change it. But i'm stuck in i where hope is the last step. I wanna keep mataining my local Storage for the ones that aren't logged and if they are logged get the information from the sql data base. But i can't reach the conditional code for: if(isLogged){checkSql}else{checkLocalStorage}. I'm using the Ultimate Member plugin i was looking in the docs and i can't find the code for this. Any ideas? Maybe i'm looking at it from th
  14. Hi BobF, Actually i want to have a login access so i can store each user data for using it and displaying it in each case. But maybe i can take it litlle by little and try to make work first what you told me, i'm still blocked in the same place, i don't know how to pass my data from my main.js where my phaser game is, to my localStorage, so i can keep it and store it in the browser cache, as you are telling me. I understand i can take data from within my wordpress post by using document.getElementById to display it in this same post, but i don't know how to take data from withi
  15. Hi o0Corps0o, Thanks for your answer! I was looking at it, and i think that i can make it work. But, i,m not sure how to pass the data. Inside my wordpress post i have a <div> tag and inside it runs my phaser game. So i need to pass the variables from a javascript file (where my variables are stored) to a php file (my wordpress post) or to pass it from a javascript direct to my sql database. As far as i found i can't do it directly. Do i need ajax to make it work? or i am missing something? Many thanks for your time!
  • Create New...