VIDEO & TEMPLATE - 5 Minute Universalisation with copy and paste and almost no effort. (Free!)

2»

Comments

  • ArmellineArmelline Member, PRO Posts: 5,406

    @GreenfroggGames You probably need to add the offset to your joystick constrains.

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline yup, might have missed some code there :)

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline Do you know if there's any device showing more new screen space in stretch mode than the iPhone 5? Just trying to figure out how big my background image has to be...

  • ArmellineArmelline Member, PRO Posts: 5,406

    Pretty sure Kindle Fires and some Android devices do.

  • IceboxIcebox Member Posts: 1,485

    @Armelline said:
    Here's the simplified version:

    Thanks alot it worked :) !

  • colandercolander Member Posts: 1,610

    @GreenfroggGames of the platforms available in Creator iPhone 6 has the widest aspect, it is only a small difference.

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @colander Thanks, but I was thinking more about all the android phones.

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline I have an actor that, when self.position X = < -100 change self.position X to 1124. When using your template and stretch, how do I add the offset?

  • ArmellineArmelline Member, PRO Posts: 5,406

    @GreenfroggGames said:
    @Armelline I have an actor that, when self.position X = < -100 change self.position X to 1124. When using your template and stretch, how do I add the offset?

    I'd have to see it to be sure, but most likely: when self.Position.X =< (-100-offset)

    But exactly what you do is really going to depend on the game. You seem to have a lot of actors that depend on specific locations, which could mess things up in a lot of ways :D

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline I have a few :( maybe I have to rethink this. I'll give it a try, thanks!

  • ArmellineArmelline Member, PRO Posts: 5,406

    @GreenfroggGames said:
    @Armelline I have a few :( maybe I have to rethink this. I'll give it a try, thanks!

    Games that rely on specific locations on a scene are always the most tricky to universalise, as any method of universalising changes the visible screen area. That's unavoidable, unfortunately.

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline Do you mind taking a look at this demo, I cant seem to get the stick to stay with the Joystick base. Been trying loads of stuff but my offset rule is wrong I guess.

  • ArmellineArmelline Member, PRO Posts: 5,406

    @GreenfroggGames said:
    @Armelline Do you mind taking a look at this demo, I cant seem to get the stick to stay with the Joystick base. Been trying loads of stuff but my offset rule is wrong I guess.

    I'll take a look, but you seem to have a rather complicated method of joystick there. Will need to untangle it first :D

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline Haha ok, Thanks!

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline Did you get a look at the demo? I've tried putting the offset next to the touch1.x and it almost works, it's just a little bit off...

  • ArmellineArmelline Member, PRO Posts: 5,406

    @GreenfroggGames said:
    @Armelline Did you get a look at the demo? I've tried putting the offset next to the touch1.x and it almost works, it's just a little bit off...

    Sorry not had a chance to give into it yet. Will do as soon as I can!

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline Ok, cool.

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline Just found the problem, you don't need to check the demo :blush:
    My camera x offset constrain rule was wrong. Thank you for helping me though :smiley:

  • GreenfroggGamesGreenfroggGames Member Posts: 224

    @Armelline When using this method and the device ratio is greater than iPad, will it just stretch? Is there a way to reverse the method as well?

  • grahameckersleygrahameckersley Member Posts: 81
    edited October 2016

    Hi, I've added this code as it was recommended to me from G.S help but I'm having the same problem i had with the last universal code i tried, it resizes and looks great as soon as i hit reset, (though it does that without the code...) but after i do the buttons stop working, i click on a button and it wont work and then i start clicking in random places around the screen and suddenly some screen or menu will come up as though the touch for them have been moved away from the button it self...
    I defiantly checked to make sure that everything that should have the code does have it but still my buttons are a no go.
    All the buttons work when i chose a different portrait display but as soon as i hit reset to make everything look right the buttons stop working

  • ArmellineArmelline Member, PRO Posts: 5,406

    @grahameckersley said:
    Hi, I've added this code as it was recommended to me from G.S help but I'm having the same problem i had with the last universal code i tried, it resizes and looks great as soon as i hit reset, (though it does that without the code...) but after i do the buttons stop working, i click on a button and it wont work and then i start clicking in random places around the screen and suddenly some screen or menu will come up as though the touch for them have been moved away from the button it self...
    I defiantly checked to make sure that everything that should have the code does have it but still my buttons are a no go.
    All the buttons work when i chose a different portrait display but as soon as i hit reset to make everything look right the buttons stop working

    This could be caused by many things. Can you show me an example project where this happens?

  • grahameckersleygrahameckersley Member Posts: 81

    Yea happy to show you, how do i do that?

  • ArmellineArmelline Member, PRO Posts: 5,406

    @grahameckersley said:
    Yea happy to show you, how do i do that?

    You can post the project here if there's nothing in it you don't want to share, or if you prefer you can email it to me at support@armelline.com.

  • grahameckersleygrahameckersley Member Posts: 81

    ok cool man thank you very much ill email that now

  • grahameckersleygrahameckersley Member Posts: 81

    I hope i'v attached that correctly

  • fmakawafmakawa Member Posts: 567

    @Armelline when publishing, is there a particular setting I have to choose between stretch/letterbox/overscan? I'm getting some weird behaviours after I chose overscan.

Sign In or Register to comment.