craidencool

Members
  • Content count

    45
  • Joined

  • Last visited

2 Followers

About craidencool

  • Rank
    Advanced Member

Profile Information

  • Gender
  1. Phaser & Intel XDK

    Hey guys. I am developing a game app in android and whenever I click the phone hardware back button it automatically exits my application. how do I stop or add a function to the back button which asks a question first if he wants to exit or not?
  2. BUILDING PHASER IN ANDROID AND IOS

    Hey guys can you give me god tutorials on building my application in android and ios. thank you.
  3. PHASER AJAX PHP MYSQL

    //In my quiz.html which is still in my localhost function submitScore() { var fullname = document.getElementById("fullname").value; var data="fullname="+fullname+"&Qone="+one+"&Qtwo="+two+"&Qthree="+three+"&Qfour="+three+"&score="+score; var request = new XMLHttpRequest(); request.open('POST', 'http://www.musuan.net/asd/Store.php', true); request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'); request.onload = function() { if (request.status >= 200 && request.status < 400){ alert('yeah!'); } else { alert('nah!'); } }; request.send(data); } //already uploaded in musun.net <?php $connection="connection.php"; $usertable="HSL_student"; $name = $_GET['fullname']; $one = $_GET['fullname']; $two = $_GET['fullname']; $three = $_GET['fullname']; $four = $_GET['fullname']; $five = $_GET['fullname']; $score = $_GET['fullname']; include($connection); $query="INSERT INTO $usertable(fullname, score, Qone, Qtwo, Qthree, Qfour, Qfive) VALUES"; $query.=" ('$name','$score','$one','$two', '$three', '$four', '$five')"; $result=mysql_query($query) or die("Error:". mysql_error()); echo "Quiz result was successfully saved."; ?> Hey guyz I am trying to store the result of the quiz from quiz.html to a database using ajax but it wont connect and log says "XMLHttpRequest cannot load http://www.musuan.net/asd/Store.php. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access." please help me. thank you
  4. PHASER OVERLAY WINDOW

    Im sorry sir but I am really having a hard time implementing this. I successfully opened the html page in an iframe but how do i close the overlayed div with a button on the page I opened in the iframe. The html page is a quiz page and when you finish taking the quiz and you clicked on submit the record is stored in mysql(already taken care) and the iframe/overlayed div is then hidden or it will go back to tha game(my problem) I hope you can show me some codes on implementing this. thank you so much!
  5. PHASER OVERLAY HTML PAGE USING IFRAME

    Hey guys. can you help me. I am developing this game. and im the main menu I have this button that when I click it opens an html page using iframe and my problem is how do I go back to the game when I am done with the html page? thank you so much.
  6. PHASER EXIT BUTTON

    Hi guys! I am trying to build a game app with phaser js and I am planning to run it in android and ios. how do you add an exit button to close game for both android and ios. thank you!
  7. Transition of state animation

    Thank you so much sir! this is very helpful.
  8. Embedding a Hyperlink

    how do you close window.location.href = "http://www.google.com"; and go back to the game? assuming I have a button to go back to the game on the google page opened.
  9. Transition of state animation

    Yes sir. this is what I meant in your game Wizard quest when I clicked play this animation plays (I print screen it) can you maybe have a sample sir how to implement this? im really new with phaser. hope you can help me. thank you!
  10. Transition of state animation

    Hey guys! can someone help me how do you add a transition animation every time I switch state? like in other game when you go to main menu there is animation before you go to the main menu state? hope you can help me thank you!
  11. Audio loop not stopping, phaser

    //CREATE back_music = this.game.add.audio('back_music'); back_music.play('', 0,1,true); //FUNCTION TO SWITCH STATE this.game.state.start('Menu'); select_audio.play(); back_music.stop(); Hey guys! I am having a problem with my game audio. If I switch states and my game is not looped the audio would stop as I intended it to do. but when the audio loop once or twice and I switch states the audio keeps playing. Hope you can help me with this one. thank you! This is the code that I am using.
  12. PHASER Tiled maps object layer position

    Helo! Is there a way in which an object from the object layer can be the starting location of the game and player? and how do you implement it? thank you!
  13. SCALING PHASER GAME TO DIFFERENT MOBILE DEVICES

    But will this work sir for tiled maps? because the tiled map has a fixed size and it does not scale together with the game size
  14. SCALING PHASER GAME TO DIFFERENT MOBILE DEVICES

    ad sir will this work in portrait mode?
  15. SCALING PHASER GAME TO DIFFERENT MOBILE DEVICES

    Sir Im using tiled maps, will this affect the output of your code? It is sort of running horizontally. thank you!