haruhi4's Recent Forum Activity

  • i found the solution: just reduced the size of my music files from the project using switch sound file converter(16kps is a good one). And exported as cordova and used the cordova plugins and device,media plugins

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • new update: just the audio plugin is not enough. I have to apply the Device plugin too

  • I have now uploaded a caproj file on 4shared to download. Strange thing: when i applied the audio plugion for the project on intel xdk, the sound worked perfectly and the apk was great, but the problem now is: my apk is too big to enter google play store! It´s 80mb! Is there a way to put audio on the project without making it over 50mb? I have already made my images and music the lowest possible on construct2

  • Problem Description

    I have an html5 game created using construct2. When i test it on the construct2 tool, the music/sfx/audio files on my game works perfectly. But when i export it to Cordova and use the intel xdk to build and publish it only as android game, the apk it generates have no sound at all. I am not using Cordova plugins and it is a game project(basic canvas games). I have disabled the android-crosswalk build and only built it for Android. Crosswalk was generating a more than 50mb file apk, so i insist that the game must stayas only android. Any help?

    Attach a Capx

    4shared.com/file/POvwoc_mba/Pitzilla.html

    Description of Capx

    The way to start the game at the very beginning is running the MenuInicial.layout. Then, a music should already be playing.

    Steps to Reproduce Bug

    • Export the caproj project to cordova
    • Check the options to export audio files to ios and android
    • Start a new project at intel xdk and import the exported from construct2 folder
    • Build the game only for Android, not android-crosswalk.
    • Create the apk and test it on android device

    Observed Result

    there is no sound on the apk file

    Expected Result

    it should have music/sounds on the apk

    Affected Browsers

    • Chrome: (YES/NO)
    • FireFox: (YES/NO)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

  • I have found the best solution. It was hard to achieve, but worth it.

    -Create a global variable called "time_until_popup_showed". It´s innitial value is -1.

    -When the popup should open(or a layer should be made visible), make the value of this global variable be 0.

    -In all conditions that have something to do with the button/image/object you dont want to be touched unless the popup is appearing, put the condition: "time_until_popup_showed > 0"

    -Make an event that is triggered every 1 second and time_until_popup_showed > -1 to make the global variable be added by 1(time_until_popup_showed will be time_until_popup_showed + 1)

    • If you made the user click somewhere (a button maybe) to open the popup/new layer, make this button invisible when you touch it(to make the popup open) and add this condition to its touch: button is visible
    • when you want to make the popup disappear, don´t forget to set the time_until_popup_showed to -1 and the button cited above(the one that opens the popup) to visible
  • I had the same problem as you. I have tried booleans, tried moving my buttons, tried even destroying it and creating it only when my popup was appearing... nothing worked!. I have found the 100% perfect solution that works perfectly(at least for me, who tried and tried and tried, worked):

    -Create a global variable called "time_until_popup_showed". It´s innitial value is -1.

    -When the popup should open(or a layer should be made visible), make the value of this global variable be 0.

    -In all conditions that have something to do with the button/image/object you dont want to be touched unless the popup is appearing, put the condition: "time_until_popup_showed > 0"

    -Make an event that is triggered every 1 second and time_until_popup_showed > -1 to make the global variable be added by 1(time_until_popup_showed will be time_until_popup_showed + 1)

    • If you made the user click somewhere (a button maybe) to open the popup/new layer, make this button invisible when you touch it(to make the popup open) and add this condition to its touch: button is visible
    • when you want to make the popup disappear, don´t forget to set the time_until_popup_showed to -1 and the button cited above(the one that opens the popup) to visible
  • I am developing a construct2 game. I want a button that only appears when a popup window is shown, to be only clickable when this window is showing. I have tried to make a condition: "on layer visible" on the events referring to the click... didn´t work. I have tried to create a global variable "popup_is_showing" and work with that... still don´t work. I have tried to make only the object(not the layer) invisible at the start of layout and visible only when the popup appears... still not working! When i debug my game, i see that the status of visibility of my button is 0, which means it is visible. I have also tried

    to move the button to an impossible Y(like 99999) when the popup is not appearing and moving it to normal location when the popup is showing... still not working.

    My popup is a different layer with many objects.

    I have already read this post:

    And still my button which stands on a "popup_menu" layer is still clickable.

    What else can i do to make my button only clickable when the popup window is showing?

  • I developed a game using construct2 and this game should be integrated with an app for iphone/android/windows phone that is made in java. Currently, the app is just accessing the URL where my game is hosted, but sometimes it takes too long to just load the game.

    Is there any way to integrate a java app with a construct2 project?

    Are the eventsheets and caproj file pure XML that can be integrated with a java program or are they not xml?

    Is there any way to export the entire html5 code from the project?

    Is there any hope on creating a .jar file from a construct2 project?

  • I have solved the problem and i think it´s the best way: Let the user decide where he want the character to revive and just move the character to there! Problem solved ^^

  • I am developing an endless runner on construct2. I am using the template provided for construct2 that is called "auto-runner". When my character falls on a hole or dies with an obstacle, i want him to revive on a safe spot if the player spends money(virtual one).

    How do i do that? It seems to me like the template is always using the object "Block" as the ground, but i have tried to restart my character at Block.x and Block.y - 20 and sometimes this doesn´t work(the character is not respawned on a safe spot, it dies immediately). Is there any way to reset my character of endless runner on a safe spot?

  • Here is the link for my project. It is posted on 4shared shared in a zip file:http://www.4shared.com/zip/QjYf9wtzce/pitzilla.html?

    Here's what you need to know to understand the bug:

    • Everytime the obstacle is created, there´s a message on the screen: criou dinoobstaculo

    -On event 13, i create the number of the obstacle that will appear(set numero_dinoobstaculo to 1).

    -On event 19, based on the number 1 for numero_dinoobstaculo, i create the obstacle very high on the screen.

    -The event 16 will make the obstacle go down. For every 0.01 seconds, as long as it is not overlapping any block, the obstacle will move down 10 pixels.

    -The event 20 is when the obstacle in question("pterodatilo") finally reaches the ground and is overlapping Block(the floor) and is on the move(se_mexendo = true), on my current attempt, i make the object not solid anymore, position it to Block.y + 4(it should be the position i want, overlapping the floor. I have tried + 20, but it still did the same thing) and make it not move(se_mexendo=false)

    • I have used this method to create my other obstacle(the dino_obstaculo 0) and it was a sucess, but that obstacle didn´t need to overlap the floor.
  • I have 2 solid objects and i want one of them to overlap the other just a little. One of them is a target and the other is the floor, so i want the target to be on the floor. Both of them are solids and bullets(because i am making an endless runner type of game). The problem is: i can´t make the target overlap the floor no matter what. I have tried to setit´s position to floor.y + 20... didn´t work. I have tried to do this and remove the solid behavior.... didn´t work. I have tried to move it to another layer... didn´t work. Do solids never overlap? What can i do to make my target on the floor?

haruhi4's avatar

haruhi4

Member since 24 Apr, 2014

None one is following haruhi4 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies