TheDom's Forum Posts

  • I realized how I labeled it was confusing. Added an example.

    I stopped other Music because I don't know what your actually using (what conditions) and if it's triggered or calling choose more than once, the value will change but, more the one music can be playing together.

  • You said in your post: "I have 5 songs. I play it randomly with choose("S1", "S2", etc.)"

    How are you changing or setting tee conditions now?

  • whether you use one event sheet or more, Global variables effect all layouts no matter what event sheet they are in. If I understand you correctly, create separate variables for different layouts and no it is not every tick.

    Just so you know;

    Using one event sheet, you could divide code into groups and disable and enable those groups based on the layout.

    You also don't have to use a separate event sheet for each layout but, rather use separate event sheets to govern different events.

    I still like to use one event sheet for each layout and put everything into a Master Group on each event sheet and disable those groups on the start of layout of the current layout and enable the Master Group of the current layout.

    You just have to keep the On Start of layout out of the Master Groups of each sheet.

    Hope you can follow that.

  • Create a Global variable with text value called Song then,

    choose("Song1", "Song2", etc.)

    System > Song =1> Audio >Play Music1

    -------------------------> Audio >Stop Music2

    -------------------------> Audio >Stop Music3

    System > Song =2> Audio >Play Music2

    -------------------------> Audio >Stop Music1

    -------------------------> Audio >Stop Music3

    System > Song =2> Audio >Play Music3

    -------------------------> Audio >Stop Music1

    -------------------------> Audio >Stop Music2

    System > Song =1

    On touched P1 > Go to layout X

  • On every tick? I could be wrong but, that sounds like performance issue that would kill your game. Is the number constantly changing or is it an additional number be added? And if so, up to how many numbers?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes if your using it for the above example that I outlined. It's better to make them invisible. You can keep them Off screen and use set position to move it to X and Y coordinates you want and the back Off screen again.

  • Any sprite (image you add by default has collision enabled. You can define the actual collision area or outline by setting the collision polygon properties. C doe attempt to do this automatically by generally needs modification for accuracy and for performance. More than 8 points can degrade performance if you have a lot of objects that have collisions enabled.

  • I see what you're saying however you can create more than one 9patch and rename them. You can put the on separate layers and make them invisible. You can keep the code that controls them in groups that you can use the System object to disable and enable them as they become visible and invisible without destroying them.

  • Here' a good way to get started:

    A simple solution to get started is to download pode html plugin here:

    Install the plugin into C2 then you can use leadbolt for ads, sign up here:

    http://www.leadbolt.com/

    then read the following tutorial here:

    https://www.scirra.com/tutorials/740/how-to-monetize-your-appgame

    You can also search tutorials section on ads and monetization for more advanced solutions.

  • Sorry, I never got back to this:

    A simple solution to get started is to download pode html plugin here:

    Install the plugin into C2 then you can use leadbolt for ads, sign up here:

    http://www.leadbolt.com/

    then read the following tutorial here:

    https://www.scirra.com/tutorials/740/how-to-monetize-your-appgame

    You can also search tutorials section on ads and monetization for more advanced solutions.

  • I posted an example of what I mean by this. If your not using effects C2 effects, your going to have to give some info or an example of how you accomplished this. Either post some screen shots with a detailed explanation or create a separate capx with a sample of your issue.

  • I assume your using a shader effect like "brightness". Reverse the effect On start of layout.

    Also try using the effect on layout instead of the layout. I've had the same issues. You need run the values in reverse on start of layout. They don't reset after leaving layout.

    Take a look at this example https://www.scirra.com/tutorials/384/scene-transition-with-shaders

    In the future you need to be more specific about how your accomplish your effect or post a capx.

    Hope this helps

  • If I think I understand you correctly you could this plugin from Rex Rainbow

    https://dl.dropboxusercontent.com/u/5779181/C2Repo/rex_moveto.html

    Easy to configure and you wont need to tween. Next, check out this video tutorial by ArcadeED

    https://www.scirra.com/tutorials/998/screen-resolution-for-mobile

    It will give you some ideas on how approach your safe zone when the screen is resizing.

    I'm working on a game where the HUD stretches to with the dimensions of the device and I have a touch panel that slides out with buttons. Likewise, I have elements that are anchored.

    You can see my games screen shots here http://www.neoprofessor.com/html/final_contact.html and notice that the HUD is stretched versus the video that's recorded on the desktop. Notice on the left side, there is the edge of the panel that when touched, pop out with buttons on it. You don't see screen shots of it but, I think you'll get the general idea.

    Like everything else you need to experiment and find X and Y coordinates that will work for your game and you don't necessarily need to anchor it.

    Maybe I'm misunderstanding you but, hopes this helps.

    Good Luck

  • Do you have a stable version (168) example that you can post?

    Check your parallax settings.

  • There's many ways to accomplish this using the behaviors although a simple solution is Rex Rainbows moveto plugin located here https://dl.dropboxusercontent.com/u/5779181/C2Repo/rex_moveto.html

    Easy to configure and set speed. Great for newbies.