danialgoodwin's Forum Posts

  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/554309/NewEmptyProject.capx (This is just a new empty project)

    Steps to reproduce:

    1. Create new empty project

    2. Export to Windows Phone 8

    3. In the exported project, open Properties\WMAppManifest.xml

    Observed result:

    In C2, my project properties title was "New project". If a user were to publish this app without changing anything, then their user-facing title would have been changed to "NewProject", aka your `[[[shortname]]]`.

    Expected result:

    I would expect that the title I set in C2 be carried over to WMAppManifest.xml in the parts that were end-user-facing.

    I would like to propose that two places be changed in WMAppManifest.xml:

    1. In the "App" tag, on the "Title" attribute.

    2. In the "TemplateFlip" tag, in the "Title" tag.

    Browsers affected:

    Chrome: n/a

    Firefox: n/a

    Internet Explorer: n/a

    Operating system & service pack:

    Windows 8.1 Enterprise, 64-bit

    Construct 2 version:

    Tested with r154, r155, r156

    Thank you for all your hard work,

    • Dan -

    ps - As I use the C2\exporters\html5\metro\package.appxmanifest as a guide, would this bug be as simple as replacing `[[[shortname]]]` with `[[[displayname]]]` or `[[[appdisplayname]]]`? Or, are there any other hidden complexities that I'm not seeing?

  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/554309/CantApostrophe.capx

    Steps to reproduce:

    1. Create new empty C2 project

    2. Set project properties title to something with an apostrophe, like "Can't Apostrophe"

    3. Export to Windows Phone 8

    4. Open project in Visual Studio

    5. Try to "Deploy Solution", then the following errors are reported by Visual Studio:

    <font face="Courier New, Courier, mono">

    Description                        File      Project

    x:Class="Can'tApostrophe.App" is not valid. 'Can'tApostrophe.App' is not a valid fully qualified class name.     C:\Users\Danial\Desktop\Can't Apostrophe\App.xaml     Can'tApostrophe

    x:Class="Can'tApostrophe.MainPage" is not valid. 'Can'tApostrophe.MainPage' is not a valid fully qualified class name.     C:\Users\Danial\Desktop\Can't Apostrophe\MainPage.xaml     Can'tApostrophe

    </font>

    Observed result:

    Errors in creating the namespace for the Windows Phone app.

    Expected result:

    I guess, users having an apostrophe in their titles shouldn't have to cause a problem for them after they export the project.

    Additional Info:

    • As I looked through the files in my "C:\Program Files\Construct 2\exporters\html5\wp8" directory, it appears that you have the placeholder `[[[shortname]]]` for the C2 project's title. You take out the spaces, but not the apostrophe (aka, single quote), and possibly other symbols.
    • I found the documentation for a fully qualified namespace, "A qualifying namespace name is not a valid element name. A name must contain only alphabetic characters, decimal digits, and underscores, and must begin with an alphabetic character or underscore (_).". More info:

      learn.microsoft.com/en-us

    Browsers affected:

    Chrome: n/a

    Firefox: n/a

    Internet Explorer: n/a

    Operating system & service pack:

    Windows 8.1 Enterprise, 64-bit

    Construct 2 version:

    beta release r156

  • Yeah, DVLUP is a great program to earn lots of great prizes. I'm already enrolled in the program.

  • I can verify that Construct 2 works with my three year old Toshiba Satellite A665. And, within the past week I have run C2 on Windows 7, Windows 8, and Windows 8.1.

    As Ashley said, the graphics card driver is probably the culprit. But, I also like to recommend that people use Windows Updates and install the recommended updates, if you haven't done so already.

    • Danial -
  • Thank you both very much! That's exactly what I was looking for!

    Btw, it was a pretty cool effect seeing text created every tick and being faded with the fade behavior. So, in order to make sure this misclick event is only called once, I added a boolean variable. Here's the full working sample that I am using:

    Download "on_misclick" solution (event called once)

  • Hey there!

    Have you tried this?

    <img src="http://jjlistrandomstuff.net16.net/Screens/On_miscklick.JPG" border="0" />

    Should be something similar for touch.

    I see the pic's URL you are trying to show is called "on_misclick" and that does sound promising. Unfortunately, I can't see the pic. ;]

    Is this from another plugin?

  • A better rephrased question is:

    What's the best way to detect a click that isn't on a sprite?

    Background:

    I have sprites that pop up and the user is supposed to click on them. I'm trying to determine when the user misses clicking on the sprite.

    Possible solutions:

    • Comparing every click with the left/top/right/bottom boundaries of every sprite displayed. But, this seems excessive and I feel that there is a better way. I just haven't found it yet.
    • I added a click detection for the background layer, but unfortunately, that is still triggered when the sprite is clicked.

    Other strategies tried:

    • Adding an inverse or else to an On Object Clicked trigger is not possible.
    • Tried adding a local variable to determine if the currently triggered click was on the sprite, but unfortunately doesn't appear to work well within triggers because they aren't called with the ticks.

    Notes:

    • Testing only in Chrome and with C2 r154.
    • After figuring this out, I will also have to do this for touch events, but that should be simple enough.
  • Actually, yeah, that's the link I used to enable proper back functionality on Windows Phone. On the first page, thehen mentions the Windows Phone plugin that has an easy event/condition for when the back button is pressed.

    And, here's a direct link to the page that talks about the plugin and how to use it: http://www.scirra.com/forum/topic62454.html

    Using that quick tutorial, I was able to make the back button: 1) Exit app on main apge; 2) Navigate to main menu when playing game, though I could have shown a pause menu instead.

  • The browser object is not made specifically for calling packaged app functions. It is for manipulating the browser which means it will have calls that do not always work in packaged apps for teh various stores. Since the game is not counting as a browser, it can't browse to the site. That specific call is to load the address into the current browser session. Your windows 8 app does not really allow this because though it is using the IE10/11 engine to render, it is not a browser, it is an app. At least that is what I have been lead to believe. Some of the browser objects calls are meant to actually run in a browser. Your app can't "Go" to the URL directly. It can call to it for an actual browser to open though using the Got to URL in a new window calls a separate instance of IE up which works fine as then you are not trying to load the page inside of your app.

    Great information!

  • I can vouch for 'Windows Phone Games with Construct 2' as not being dated. Everything should still be relevant.

    In terms of tips - test with different locales. We didn't and had some crashing in certain countries which gave us quite a damaging initial rating. Next, make sure you make a good first impression - overall ranking is very much dependent on initial downloads. Finally, I've noticed games that make regular requests for the user to rate get a lot more positive ratings.

    Thank you.

  • Well, instead of using the Browser plugin's "Go to URL" action, I decided to try the "Go to URL in a new window" action. And, it works fine.

    Still though, this is just one answer. Anybody else have any more ideas or knowledge surrounding using the "Go to URL" action in a Windows app?

  • Hi, I'm creating a Windows 8 app and I wondering if anybody has experienced this bug before? In my game, I have a Sprite and when clicked it is supposed to navigate to the Windows 8 Store. But, instead I get the following error:

    "APPHOST9624: The app can't use script to load the <URL_HERE> url because the url launches another app. Only direct user interaction can launch another app."

    My event is: onMouseClick OR onTouchedObject

    My action is using the Browser plugin's Go to URL action.

    Notes:

    • I do have the Internet capability enabled.

    Update: I posted one solution below, but I'd still like to leave this thread open in case anybody else would like to illuminate on this issue more.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For those who have published Windows Phone apps made from Construct 2, do you have any tips or advice how to get the apps published? Or, is there anything you wish you knew before you started publishing to the Windows Phone Store?

    So far, I've found the following two resource:

    1. Windows Phone Games with Construct 2

    2. How to make a Windows Phone 8 app

    Unfortunately, both may be a little dated. So, I'm looking for all the information I can get about this topic. Mostly, from the C2 side.

    ps - I've already made WP8 apps before from scratch (C#).

  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/554309/c2-bug-no-horizontal-for-windows-phone.capx

    Steps to reproduce:

    1. Create new project, leave everything at default, except set orientation to Landscape

    2. Export to Windows Phone 8

    3. Open project in Visual Studio (optional)

    4. Observe that MainPage.xaml has:

    SupportedOrientations="Portrait" Orientation="Portrait"

    when it should say:

    SupportedOrientations="Landscape" Orientation="Landscape"

    Observed result:

    Only portrait mode able for Windows Phone 8

    Expected result:

    Landscape mode enabled for Windows Phone 8

    Browsers affected:

    Chrome: N/A

    Firefox: N/A

    Internet Explorer: yes

    Operating system & service pack:

    Windows 8.1 Pro, 64-bit

    Construct 2 version:

    Tested on r152 (stable) and r154 (current).

  • Bump, because I am also experiencing this issue.