TheDom's Recent Forum Activity

  • 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.

  • Nice job

    eli0s , I'll always expand on answer if you need it. just ask. Just so you know, that while you technically can't declare a Boolean value with a global variable with C2 in the same way you can with an instance variable. The alternative to to simply use 0 for false and 1 for true as follows.

    Here's an example of how I use numbers to represent TRUE and FALSE

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • See, you learn something new everyday...

  • Get rid of mouse object. The touch object has "use mouse input" by default in the properties dialog when selected.

    If you have to have both,(mouse & touch objects) put all mouse object conditions and events into a group (Mouse Group) and all touch object conditions and events into another group (Touch Group).

    Then use System > On start of Layout (create sub events)

    ------------Is on mobile device > System>Mouse Group "Disable"

    ----------- Is on mobile device (X) > System>Touch Group "Disable"

    (X) being inverted

    Also code your mouse group like the first example I gave above.

TheDom's avatar

TheDom

Member since 7 Jul, 2012

Twitter
TheDom has 1 followers

Connect with TheDom

Trophy Case

  • 12-Year Club
  • x6
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies