PantsSleeve's Forum Posts

  • Hi,

    I think it looks good they way you have it, that the trace is created where the Sprite was when you pressed the button. If you really want it to be created in the new spot a simple way would be to add a wait with 0.05s before the trace is created.

    I'll attach an example.

  • You will have to explain what you mean a bit more in detail, are you using file with json as storage? My spontaneous first thought is why are you not using the webstorage? But like I said it's hard answering without more information.

  • Hi,

    When I export my app using the cordova exporter, I only select the "Hide status bar" option. NOT the geolocation option.

    Then I upload my app to build.phonegap.com and download the ipa-file, then I install the app on my iPad and iPhone and when I open the app it pops up this alert:

    "Allow <App Name> to access your location even when you are not using the app?"

    I'm trying to get the app out on app store and Apple is asking why the app need the location permission and the truth is I just can't figure out how to get rid of it, any help is appreciated.

    This is my config.xml file, I've tried adding some extra things to remove the permission alter but without any luck so far:

    <?xml version="1.0" encoding="UTF-8"?>
    <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="se.onemuppet.draw" version="1.0.0">
    
      <name>myDraw</name>
      <description>Drawing</description>
      <author href="http://onemuppet.se/" email="borgenvik.david@gmail.com">David Borgenvik</author>
    
      <icon src="icon-128.png" width="128" height="128" />
      <icon src="icon-256.png" width="256" height="256" gap:role="default" />
    
      <preference name="permissions" value="none"/>
      <preference name="android-targetSdkVersion" value="21" />
    
      <preference name="orientation" value="landscape" />
      <preference name="fullscreen" value="true" />
      <gap:config-file platform="ios" parent="UIStatusBarHidden">
        <true/>
      </gap:config-file>
      <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">
        <false/>
      </gap:config-file>
    
      <preference name="deployment-target" value="8.0" />
      <preference name="android-minSdkVersion" value="21" />
      <preference name="target-device" value="universal" />
      <preference name="EnableLocation" value="false" />
    
      <!-- Optional splash screen image, e.g.: -->
    
      <!-- iPhone / iPod Touch  -->
      <icon src="icon-57.png" gap:platform="ios" width="57" height="57" />
      <icon src="icon-60.png" gap:platform="ios" width="60" height="60" />
      <icon src="icon-120.png" gap:platform="ios" width="120" height="120" />
      <icon src="icon-114.png" gap:platform="ios" width="114" height="114" />
    
      <!-- iPad -->
      <icon src="icon-72.png" gap:platform="ios" width="72" height="72" />
      <icon src="icon-144.png" gap:platform="ios" width="144" height="144" />
      <icon src="icon-76.png" gap:platform="ios" width="76" height="76" />
      <icon src="icon-152.png" gap:platform="ios" width="152" height="152" />
    
      <!-- Settings Icon -->
      <icon src="icon-29.png" gap:platform="ios" width="29" height="29" />
      <icon src="icon-58.png" gap:platform="ios" width="58" height="58" />
      <icon src="icon-50.png" gap:platform="ios" width="50" height="50" />
      <icon src="icon-100.png" gap:platform="ios" width="100" height="100" />
    
      <!-- Spotlight Icon -->
      <icon src="icon-40.png" gap:platform="ios" width="40" height="40" />
      <icon src="icon-80.png" gap:platform="ios" width="80" height="80" />
    
      <!-- Optional splash screen image, e.g.: -->
      <gap:splash src="splash480.png" gap:platform="ios" width="480" height="320" />
      <gap:splash src="splash320x480.png" gap:platform="ios" width="320" height="480" />
    
      <gap:splash src="splash960.png" gap:platform="ios" width="960" height="640" />
      <gap:splash src="splash640x960.png" gap:platform="ios" width="640" height="960" />
    
      <gap:splash src="splash_iphone5.png" gap:platform="ios" width="1136" height="640" />
      <gap:splash src="splash640x1136.png" gap:platform="ios" width="640" height="1136" />
    
      <gap:splash src="splash.png" gap:platform="ios" width="1024" height="768" />
      <gap:splash src="splash768x1024.png" gap:platform="ios" width="768" height="1024" />
    
      <gap:splash src="splash568.png" gap:platform="ios" width="568" height="320" />
      <gap:splash src="splash320.png" gap:platform="ios" width="320" height="568" />
    
      <gap:splash src="splash1334.png" gap:platform="ios" width="1334" height="750" />
      <gap:splash src="splash750x1334.png" gap:platform="ios" width="750" height="1334" />
    
      <gap:splash src="splash2208.png" gap:platform="ios" width="2208" height="1242" />
      <gap:splash src="splash1242x2208.png" gap:platform="ios" width="1242" height="2208" />
    
      <gap:splash src="splash2048x1536.png" gap:platform="ios" width="2048" height="1536" />
      <gap:splash src="splash1536x2048.png" gap:platform="ios" width="1536" height="2048" />
    
    </widget>[/code:1qtj6fmq]
  • Thanks , I tried it a couple of days ago, connected the computer to the TV with apple-tv and gave my sons a smart phone each as a controller and it worked well. They are only 2 and 5 years old and I manage to keep them playing for a good two minutes, which is something like 2 hours in grown-up time

    I've done everything from scratch so I'm not using anything from superhappyfuntimes, mostly because I felt C2 had all the needed parts all ready.

    Anyway, this is how I've set it up so far. There are three components:

    • Main game: made with construct 2
    • Controller: made with construct 2
    • Nodejs server, to connect the main game and the controllers

    A user downloading the "package" should not have to care about the nodejs server (unless they want to). But they will have to start the nodejs server on their local computer.

    The controllers will send simple input instructions to the websocket server which the server will send to the main game. The main game has "functions" like "Joined", "Dropped" and so on. A user could add new actions to send from the controller and add support for interpreting those in the main game without having to modify the nodejs websockets server. So all modifications will be done in construct 2.

    The controller and the main game would be pretty simple to change. All the coding will be done in the main game (unless you want to add new actions from the controller). But if you would like a user to loose hp when another user bounces of their head that would be normal event based coding in c2 in the main game.

    I'm currently working on another construct 2 project and just did this for fun, but it there are more people interested I will of course try to make a beta release of "this", codename CrowdGaming

    KFC yes but adding the need for a nodejs websockets server. The reason I looked into this from the start was because I was disappointed to find out that ios did not support webRTC which means there is no C2 multiplayer support on iOS, so I started investigating alternatives ended up with websockets did a multiplayer game with a nodejs server hosted on a amazon AWS micro instance had too much lag and figured it would be better on LAN which it was.

  • Here is my first working prototype: http://youtu.be/oVBihLMjJAU

    Let me know if there is any interest for it?

  • I've been investigating this a bit and have an ok idea of how to develop this. But it will take a lot of effort. And I may very well run into something that I cannot solve due to lack of time and or knowledge or both

    I just wanted to check with your quickly if I (or someone else) did proceed to develop this and released it on the Scirra store as a template/bundle (or what ever it should be called) so that people could use to develop their own games, what would you consider beeing a fair price? 10$? 20$?

  • This sounds awesome since webRTC isn't supported yet on iOS I think this is what I will be using for iOS multiplayer. I will try to get some time to test it out after Christmas.

  • pew* It took me the better part of this day and close to 40 tries using Application Loader before I finally got my app submitted, so to anyone not wanting to spend their day googling and trial and erroring here you go.

    Create a lot of icons and splash screens in different sizes and add them to your construct 2 project under "Files". See my config.xml below to find out exactly with dimensions are required.

    [attachment=0:1z0mef6q][/attachment:1z0mef6q]

    Modify your config.xml (in the directory where your exported game is) to match these values for icons and splashes:

    <?xml version="1.0" encoding="UTF-8"?>
    <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="se.onemuppet.draw" version="1.0.0">
    
      <name>myDraw</name>
      <description>Drawing</description>
      <author href="http://onemuppet.se/" email="borgenvik.david@gmail.com">David Borgenvik</author>
    
      <preference name="permissions" value="none"/>
      <preference name="android-targetSdkVersion" value="21" />
    
      <feature name="http://api.phonegap.com/1.0/network"/>
    
      <preference name="orientation" value="landscape" />
      <preference name="fullscreen" value="true" />
      <gap:config-file platform="ios" parent="UIStatusBarHidden">
        <true/>
      </gap:config-file>
      <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">
        <false/>
      </gap:config-file>
    
      <preference name="deployment-target" value="8.0" />
      <preference name="android-minSdkVersion" value="14" />
      <preference name="target-device" value="universal" />
    
      <!-- iPhone / iPod Touch  -->
      <icon src="icon-57.png" gap:platform="ios" width="57" height="57" />
      <icon src="icon-60.png" gap:platform="ios" width="60" height="60" />
      <icon src="icon-120.png" gap:platform="ios" width="120" height="120" />
      <icon src="icon-114.png" gap:platform="ios" width="114" height="114" />
    
      <!-- iPad -->
      <icon src="icon-72.png" gap:platform="ios" width="72" height="72" />
      <icon src="icon-144.png" gap:platform="ios" width="144" height="144" />
      <icon src="icon-76.png" gap:platform="ios" width="76" height="76" />
      <icon src="icon-152.png" gap:platform="ios" width="152" height="152" />
    
      <!-- Settings Icon -->
      <icon src="icon-29.png" gap:platform="ios" width="29" height="29" />
      <icon src="icon-58.png" gap:platform="ios" width="58" height="58" />
      <icon src="icon-50.png" gap:platform="ios" width="50" height="50" />
      <icon src="icon-100.png" gap:platform="ios" width="100" height="100" />
    
      <!-- Spotlight Icon -->
      <icon src="icon-40.png" gap:platform="ios" width="40" height="40" />
      <icon src="icon-80.png" gap:platform="ios" width="80" height="80" />
      
      <!-- Optional splash screen image, e.g.: -->
      <gap:splash src="splash480.png" gap:platform="ios" width="480" height="320" />
      <gap:splash src="splash320x480.png" gap:platform="ios" width="320" height="480" />
      
      <gap:splash src="splash960.png" gap:platform="ios" width="960" height="640" />
      <gap:splash src="splash640x960.png" gap:platform="ios" width="640" height="960" />
      
      <gap:splash src="splash_iphone5.png" gap:platform="ios" width="1136" height="640" />
      <gap:splash src="splash640x1136.png" gap:platform="ios" width="640" height="1136" />
      
      <gap:splash src="splash.png" gap:platform="ios" width="1024" height="768" />
      <gap:splash src="splash768x1024.png" gap:platform="ios" width="768" height="1024" />
      
      <gap:splash src="splash568.png" gap:platform="ios" width="568" height="320" />
      <gap:splash src="splash320.png" gap:platform="ios" width="320" height="568" />
      
      <gap:splash src="splash1334.png" gap:platform="ios" width="1334" height="750" />
      <gap:splash src="splash750x1334.png" gap:platform="ios" width="750" height="1334" />
      
      <gap:splash src="splash2208.png" gap:platform="ios" width="2208" height="1242" />
      <gap:splash src="splash1242x2208.png" gap:platform="ios" width="1242" height="2208" />
      
      <gap:splash src="splash2048x1536.png" gap:platform="ios" width="2048" height="1536" />
      <gap:splash src="splash1536x2048.png" gap:platform="ios" width="1536" height="2048" />
    
    </widget>[/code:1z0mef6q]
  • Did you add the files to your construct 2 project? With names matching those you typed in the config.xm?

    I've just spent the better part of the day figuring out the correct settings to upload a phonegap project and I'll happily share (so that hopefully I'll remember it better).

    I'll paste the contents of my config.xml file below and attatch an image showing the images so that you can see how I've set it up in construct 2.

    Good luck!

    [attachment=0:dmvw0moa][/attachment:dmvw0moa]

    <?xml version="1.0" encoding="UTF-8"?>
    <widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" id="se.onemuppet.draw" version="1.0.0">
    
      <name>myDraw</name>
      <description>Drawing</description>
      <author href="http://onemuppet.se/" email="borgenvik.david@gmail.com">David Borgenvik</author>
    
      <preference name="permissions" value="none"/>
      <preference name="android-targetSdkVersion" value="21" />
    
      <feature name="http://api.phonegap.com/1.0/network"/>
    
      <preference name="orientation" value="landscape" />
      <preference name="fullscreen" value="true" />
      <gap:config-file platform="ios" parent="UIStatusBarHidden">
        <true/>
      </gap:config-file>
      <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">
        <false/>
      </gap:config-file>
    
      <preference name="deployment-target" value="8.0" />
      <preference name="android-minSdkVersion" value="14" />
      <preference name="target-device" value="universal" />
    
      <!-- iPhone / iPod Touch  -->
      <icon src="icon-57.png" gap:platform="ios" width="57" height="57" />
      <icon src="icon-60.png" gap:platform="ios" width="60" height="60" />
      <icon src="icon-120.png" gap:platform="ios" width="120" height="120" />
      <icon src="icon-114.png" gap:platform="ios" width="114" height="114" />
    
      <!-- iPad -->
      <icon src="icon-72.png" gap:platform="ios" width="72" height="72" />
      <icon src="icon-144.png" gap:platform="ios" width="144" height="144" />
      <icon src="icon-76.png" gap:platform="ios" width="76" height="76" />
      <icon src="icon-152.png" gap:platform="ios" width="152" height="152" />
    
      <!-- Settings Icon -->
      <icon src="icon-29.png" gap:platform="ios" width="29" height="29" />
      <icon src="icon-58.png" gap:platform="ios" width="58" height="58" />
      <icon src="icon-50.png" gap:platform="ios" width="50" height="50" />
      <icon src="icon-100.png" gap:platform="ios" width="100" height="100" />
    
      <!-- Spotlight Icon -->
      <icon src="icon-40.png" gap:platform="ios" width="40" height="40" />
      <icon src="icon-80.png" gap:platform="ios" width="80" height="80" />
      
      <!-- Optional splash screen image, e.g.: -->
      <gap:splash src="splash480.png" gap:platform="ios" width="480" height="320" />
      <gap:splash src="splash320x480.png" gap:platform="ios" width="320" height="480" />
      
      <gap:splash src="splash960.png" gap:platform="ios" width="960" height="640" />
      <gap:splash src="splash640x960.png" gap:platform="ios" width="640" height="960" />
      
      <gap:splash src="splash_iphone5.png" gap:platform="ios" width="1136" height="640" />
      <gap:splash src="splash640x1136.png" gap:platform="ios" width="640" height="1136" />
      
      <gap:splash src="splash.png" gap:platform="ios" width="1024" height="768" />
      <gap:splash src="splash768x1024.png" gap:platform="ios" width="768" height="1024" />
      
      <gap:splash src="splash568.png" gap:platform="ios" width="568" height="320" />
      <gap:splash src="splash320.png" gap:platform="ios" width="320" height="568" />
      
      <gap:splash src="splash1334.png" gap:platform="ios" width="1334" height="750" />
      <gap:splash src="splash750x1334.png" gap:platform="ios" width="750" height="1334" />
      
      <gap:splash src="splash2208.png" gap:platform="ios" width="2208" height="1242" />
      <gap:splash src="splash1242x2208.png" gap:platform="ios" width="1242" height="2208" />
      
      <gap:splash src="splash2048x1536.png" gap:platform="ios" width="2048" height="1536" />
      <gap:splash src="splash1536x2048.png" gap:platform="ios" width="1536" height="2048" />
    
    </widget>[/code:dmvw0moa]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nutzaboutpoker can you please post all the required things you added to your config.xml, it would be helpful for the rest of us and probably good for Ashley as well, when trying to modify the generated config.xml.

    Ashley, I've attached a screen dump of the errors I get when trying to publishing through Application Loader.

  • There is still limited support for webRTC in mobile browsers, Android has the best support to the best of my knowledge, but I don't think there is any support for the scrirra multiplayer object on ios browser now. Hopefully it won't be long before mobile browser support is better.

    Right now I think downloading and hosting the happyFunTimes server and perhaps building a happyFunTime plugin to construct 2 if needed so that the games could listen for and interpret the input (havn't looked into the happyFunTime API yet), would be our best bet. Maybe you could email the people behing happyFunTime and ask if they could look into a construct 2 integration?

  • Reading this:

    https://github.com/greggman/HappyFunTim ... s.md#clone

    "If you're doing it in JavaScript use any game framework you want, copy one of the examples, or write from scratch but a few rules. If you're doing it in Unity3D or any other language you should still follow the info below."

    suggests to me that it should be possible to deploy a construct 2 game with HappyFunTimes, maybe it's necessary to write a plugin that supports the controller input API, but that shouldn't be impossible.

    very promising.... soooo many fun things to do, so little time! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • wow cool! I hope I have time to look into this more!

    Regarding your question are you asking if we could make games for happyFunTimes, using construct 2?

  • Good job! I've always like those "Simon says"-type of games. I'll see if I can snatch my wifes android and try it some day

  • It's great to see so many construct2ers joined ld48! I had a lot of fun, here is the game I made:

    http://www.ludumdare.com/compo/ludum-dare-30/?action=preview&uid=41104