User Tag List

Page 4 of 4 FirstFirst ... 2 3 4
Results 31 to 37 of 37

Thread: Universal Apps and Joystick Images

  1. #31
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,847
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    For me this is a bug, makes no sense what is happening and the solution is not to create our own Joystick with Multitouch. It is obvious that when you create a Universal app Joystick comes folded in small devices, which makes non-functional. They have the proof in your hands, both mine and Renatos are seeing it visually. We wander not attention seeking other solutions, try François and Andos can review our codes to make them find, incidentally, have mine and you can try right now.

  2. #32
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)
    The joystick image sizing works like this:

    They are designed to be 2cm in diameter on iPad and 1.5cm on iPhone/iPod regardless of your window resolution/size if the joystick images are 80x80 in size (the default joystick size).
    If you provided new joystick images sized 160x160 they would appear twice as large ~ 4cm on iPad and 3cm on iPhone/iPod.

    It was designed like this because while screen resolutions and screen sizes differ in size across your devices, your fingers does not.

    You can see this demonstrated here:
    http://www.andersriggelsen.dk/clickt.../joystick1.jpg 1024x768 (fit outside setting)
    http://www.andersriggelsen.dk/clickt.../joystick2.jpg 320x240 (fit outside setting)

    The iPad and iPod Touch is displaying the exact same .cci file in the same image.

  3. #33
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModulePatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)
    Renatos's Avatar
    Join Date
    Jun 2006
    Location
    São Paulo, SP - Brasil
    Posts
    593
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get it, but I don't agree with the fact we do not have a choice to adjust it to the size we choose. That's all.

  4. #34
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,847
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Andos View Post
    If you provided new joystick images sized 160x160 they would appear twice as large ~ 4cm on iPad and 3cm on iPhone/iPod.
    My images for the Joystick are 80 * 80 and it seems to me that I see them in the iphone more than 1.5 cm, I will check. Do now Andos, I wonder if I provide images of 40 * 40, going down screen 1 cm on the iPad 0.75 cm on iPhone?

    Thanks for your answer!

  5. #35
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Universal Apps and Joystick Images

    People's fingers don't grow or shrink; it should be the same physical size on both devices, NOT the same pixel size. I thought this was a blessing to be honest. When I put Awesome Land out with my custom buttons (active objects and multiple touch) a lot of iPad users gave negative feedback about the buttons being large when upscaled to iPad. With MANOS I detected the device with the iOS object and shrunk the buttons down if running on iPad for that reason. Obviously things get a little more confused now that e iPad Mini is out, but It'd be crazy for the buttons not to work this way...

    Sent from my iPad Mini using Tapatalk HD

  6. #36
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Easy code to fix all of this. My joystick image is 150x150 and my buttons are 70x70. This has been tested on the iPhone 5, iPod 5G, iPad 2, iPad 3, iPhone 4S and iPod Mini with retina and non-retine displays.

    Open your iOS project and look for Classes\Application\CJoystick.m.

    Under the -initWithApp method look for "if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)" and replace that whole if with the following:

    Code:
    if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
    	{
    		minSizeInCm = 14.8;
    		desiredScreenSizeInCm = 2.0;
    	}
    	else
    	{
            if ([[UIScreen mainScreen] respondsToSelector:@selector(displayLinkWithTarget:selector:)] &&
                ([UIScreen mainScreen].scale == 2.0)) {
                // Retina display
                
                minSizeInCm = 14;
                desiredScreenSizeInCm = 2.5;
            } else {
                // Non-Retina display
                
                minSizeInCm = 7;
                desiredScreenSizeInCm = 1.25;
            }
    	}

  7. #37
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Aug 2011
    Location
    Beverly Hills, CA USA
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It also works well with the joystick images at 100x100.

Page 4 of 4 FirstFirst ... 2 3 4

Similar Threads

  1. How can you Change the default Joystick Images?
    By aasharp in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 20th August 2013, 07:41 AM
  2. Joystick images mess up the screen
    By JoKa in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 8th August 2012, 09:07 AM
  3. Restore Joystick images
    By Sloxone in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 30th May 2012, 09:35 AM
  4. Replies: 8
    Last Post: 18th January 2012, 08:30 AM
  5. Touch joystick images corrupted after background
    By DistantJ in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 24th July 2011, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •