thehen's Recent Forum Activity

  • jeremy oops only just saw this by accident. Use thehen to ensure I get notifications.

    If you PM me a build I'll happily take a look.

  • Ashley that's brilliant, thanks very much. Scaling itself is fine, it's more that certain elements need to be adjusted on smaller/larger displays.

    For example on a mobile screen, our circular buttons need to be slightly larger than the thumb. When that scales up uniformly onto the iPad they become far too big.

    Using this expression I can make adjustments that work across all Android, iOS devices and even retina monitors on laptops etc.

    E.g.

    iPad

    iPad 1

    ScreenWidth / devicePixelRatio == 1024

    1024 / 1 = 1024

    iPad 2

    ScreenWidth / devicePixelRatio == 1024

    1024 / 1 = 1024

    iPad 3

    ScreenWidth / devicePixelRatio == 1024

    2048 / 2 = 1024

    iPad 4

    ScreenWidth / devicePixelRatio == 1024

    2048 / 2 = 1024

    iPad Mini

    ScreenWidth / devicePixelRatio == 1024

    2048 / 2 = 1024

    iPhone

    iPhone 1

    ScreenWidth / devicePixelRatio == 320

    320 / 1 = 320

    iPhone 3G

    ScreenWidth / devicePixelRatio == 320

    320 / 1 = 320

    iPhone 3GS

    ScreenWidth / devicePixelRatio == 320

    320 / 1 = 320

    iPhone 4

    ScreenWidth / devicePixelRatio == 320

    640 / 2 = 320

    iPhone 4S

    ScreenWidth / devicePixelRatio == 320

    640 / 2 = 320

    iPhone 5

    ScreenWidth / devicePixelRatio == 320

    640 / 2 = 320

    iPhone 5C

    ScreenWidth / devicePixelRatio == 320

    640 / 2 = 320

    iPhone 5S

    ScreenWidth / devicePixelRatio == 320

    640 / 2 = 320

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • We need the business license, but then we won it, so all's good :)

  • jeremy if you upload an html export and run in the Windows Phone browser does it work? Sounds like it may be an Windows Phone web worker issue.

  • Or are you confused by the fact that you can not use one object as a parent if the other objects are already in a container?

    I know I am.

    Exactly! :)

  • newt I'm not sure I follow.

    Say you have two motorbike objects (red and green) and a single character object. If you add the character object to the red motorbike container, you can not add it to the green motorbike container.

    The use case is hypothetical but explains my conundrum.

  • Ashley yep it would! I was wondering whether this would be the right approach though - it concerns me that others haven't run into the same issue?

  • Hi all,

    Is there any reason why I can't use the same object in multiple containers? Seems like a strange limitation?

  • You can get longitude and latitude with the Geolocation object. You could then implement the following using events: Calculate distance, bearing and more between Latitude/Longitude points.

    If you plan on getting any more data other than distance, such as city name etc. then it would probably be best to write a plugin that utilises a reverse-geocoding service like the Bing Maps API (it's got more flexible licensing than Google's).

    Edit -> This is a good place to start: Geolocation

  • HITmen you're applying an impulse every tick. Make sure you use the 'trigger once when true' condition.

    Edit -> Dammit, beaten by

  • mertyildiran no worries, I'm sure the accusatory tone was just miscommunication. I'm always happy to help if you have any further issues :)

  • ome6a1717 no problem :)

thehen's avatar

thehen

Member since 25 Jul, 2012

None one is following thehen yet!

Connect with thehen

Trophy Case

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

Progress

14/44
How to earn trophies