johnkx's Forum Posts

  • randomly sorry for late reply! Was very busy recently.. Yes, I'm wrapping with NW.js. I have two buttons on my app, one is CAMERA (letting user to take a photo) and GALLERY (letting user to choose an image from their phone). To do that, I used File Chooser to let user have access to their phone's images. The problem is, when user choose GALLERY, android give user alot of options, option such as file manager and gallery is acceptable, but it also let user to choose camera, cam recorder, sound recorder, choose music track which is irrelevant.

    Is there anyway to not show so many options?

  • Hi guys, i have a situation, when i was trying my app with my phone, I pressed the PLAY button to go to the next layout. But after I pressed the PLAY button, the game went hang, and the screen when black, I'm sure my phone was working fine, because i still can minimize and do other things...

  • Hi there, I'm trying to let user choose an image from their phone gallery and load it into a sprite by using file chooser. My problem while testing the app is, when I press the file chooser, it doesn't bring me to the phone's gallery, instead, it give me option to choose camera, gallery or file manager. How do I restrict the file chooser to select images from gallery only??

  • Oh my! How could I not think of that?! Thanks alot for helping out!

  • I'm sorry, what do you mean "on tap"?

  • Hi guys, I'm trying to whenever i touches the screen, the bullet will be spawn from the player, and the bullet will be destroyed on where I touch. To do that, I tried

    Touch, on any touch start

    • Player spawn bullet
    • set x (instance variable) to Touch.X
    • set y (instance variable) to Touch.Y
    • Bullet set angle towards (Touch.X, Touch.Y)

    Sub-event

    • Bullet X = x and Bullet Y = y, destroy bullet

    Below is my capx file

    https://www.dropbox.com/s/56io2ckgi36qf ... .capx?dl=0

  • Kyatric , whenever I touch the screen after setting set angle toward position (Touch.X, Touch.Y), the sprite upper side(head) do not face where I touch, instead the right side of the sprite face where I touch, do you know why..?

  • Kyatric ok, thank you for explaining, i'll try to work it out!

  • Kyatric, no I'm not using mouse input, i type wrong, I just correct it back, below is my sample cpax file.

    https://www.dropbox.com/s/56io2ckgi36qf ... .capx?dl=0

  • Hi guys, as mention in the subject, I'm trying wherever i touch the screen, my player sprite would remain at its position and look at that direction, therefore I tried using set angle toward position (Touch.X, Touch.Y). The result was my player sprite automatically rotate to left for 90 degrees. Do anyone know how to solve this? Or is there a better solution??

  • Hi LaDestitute, it works! I'm actually trying wherever i touch the screen, my player sprite would remain at its position and look at that direction, therefore I tried using set angle toward position (Touch.X, Touch.Y). Since it does not work, do you know any other way I can do it?

    Thanks!!

  • Guys,

    I added the 8 direction behaviour to my player sprite, by default it is disabled. After entering the game and enable the behaviour, my player sprite automatically rotate 90 degree to the left, why will it rotate automatically? All i did was just enabling the behaviour, help please...

    Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Matija, thanks for replying! I tried your method, it works! But there is still something I'm not so sure about,

    I currently did not click the SIGNED and did not choose a developer certificate, after I build the project, i use apk-signer to sign and align my app. Based on what you said, if I click SIGNED and use a keystore in Intel XDK, does it mean I do not have to use apk-signer anymore?

  • I had found out the reason, to run a apk, I have to sign first, since I untick Signed in the first place, that why my apk can't function normally. Which lead me to another question,

    What's the difference between ticking the Signed at building settings and sign myself after building the project??

  • Hi guys,

    I had just tried to install my first game after building it with Intel XDK. But the installation failed for reason I do not know. Therefore, I will describe the steps I made to export and build the game. Please tell me what I've done wrong, thanks..!

    • Export the project from Construct 2 by using Cordova
    • Open the exported project with Intel XDK

    At PROJECTS

    • At Build Settings, tick Optimize with Crosswalk
    • Fill in App ID, App Name, App Description, Author, App Version
    • White list, as default, selected Cordova Whitelist, leave Network Request, Instent, Navigation blank
    • Inserted Developer Certificate
    • Untick Signed
    • Added launch icons and splash screen

    At TEST

    • Push files to server

    At BUILD

    • Select CORDOVA HYBRID MOBILE APP PLATFORMS
    • Select Android
    • Start build
    • Download the apk

    Tried to install the apk with my phone, but it failed..

    Tried again using Bluestacks, it shows "INSTALL_PARSE_FAILED_NO_CERTIFICATES"

    Help please...