gamepopper's Forum Posts

  • OK will do. Thanks. :)

  • Link to .capx file (required!):

    dl.dropbox.com/u/30381754/Touch%20Test%20Application.capx

    Steps to reproduce:

    1. Run the Layout or Export the project as a HTML5 website.

    2. Release from Touch, and the red square

    Observed result:

    <img src="https://dl.dropbox.com/u/30381754/Touch%20Issue%20screenshot.png" border="0" />

    This screenshot was after multiple touches of my screen, the screen wasn't in any contact while the screenshot was captured.

    Expected result:

    A red square should appear at the position of the first touch, and follow the location of the touch until the touch ends, where the red square disappears.

    The first touch count returns the value of the TouchCount expression, the second one is a global variable which increments when a new touch is received and de-increments when a touch has ended. Both touch counts should be the same value, increasing by one when a touch is performed and have a value of zero when the screen is not touching.

    Browsers affected:

    Chrome: yes

    Internet Explorer: no

    Operating system & service pack: Windows 8 Pro (64-bit)

    Construct 2 version: r123.2

    I first raised this bug on the version [r122], but the bug still occurs. As of writing it only seems to be effected on Google Chrome, as Internet Explorer, as well as exported versions for CocoonJS and Windows 8 are not effected.

  • Why is this now in the closed section?

  • Can you make a simpler .capx? As it is the events are complicated enough that it's not obvious this is not just a mistake in your events.

    Edit: also, your .capx does not match your screenshot, I don't see a touch count text showing.

    Sorry about that, I updated that old .capx file. I've made a simple .capx like you requested. All it does is draw text that details the amount of touches using "TouchCount". I've also changed the screenshot to demonstrate this new one. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I've done a bit more testing and found that the bug does not occur while running it on Android using CocoonJS, or when exported as a Windows 8 App. Therefore this bug of mine occurs as a HTML5 Application both exported and running from the capx file.

  • Link to .capx file (required!):

    dl.dropbox.com/u/30381754/Touch%20Test%20Application.capx

    Steps to reproduce:

    1. Run project in Google Chrome App on laptop with touch screen (mine is an Asus SonicMaster N6 series)

    2. Touch the screen, usually with quick taps.

    Observed result:

    Touch count increases by one for each touch, but some do not decrease.

    When the screen is single touched, a black circle appears in at the position of the initial touch, but sometimes doesn't disappear after the touch has ended.

    This can lead to touch count values like these:

    <img src="https://dl.dropbox.com/u/30381754/Touch%20Issue%20screenshot%20%28800x524%29.jpg" border="0" />

    These issues appear more likely to occur with quick taps of the screen, as long held touches do not appear to have effect.

    Expected result:

    Touch count increases by one at start of touch, and decreases by one the end of a touch.

    When the screen is single touched, a black circle appears in at the position of the initial touch, and disappears when the touch has ended.

    Browsers affected:

    Chrome: yes

    Firefox: no

    Internet Explorer: no

    Operating system & service pack: Windows 8 64-bit Pro

    Construct 2 version: r122

  • I'm not sure whether to refer it as a bug in Construct2, my project or an issue with my laptop's touchscreen. But while working on a project, I noticed the position of the touch actions are different to where I'm touching on the screen.

    I don't get any issues when using a mouse, only when I'm using the touchscreen on my laptop. What I found after adding text that displays the amount of touches currently on screen, and randomly touching the screen: this ended up occurring:

    <img src="https://dl.dropbox.com/u/30381754/Touch%20Issue%20screenshot.png" border="0" />

    For some reason, some of the touches don't get removed after the loss of contact from the screen, so in this case I somehow ended up with 21 touches, even after having my hand away from contact with the screen. The mouse does not cause this effect. Any help will be appreciated.

  • What programming language are you using? I assume JavaScript and HTML5 but I have experience in a few languages myself.

  • Wow, both methods work! I didn't notice there was a variable that contains the UID for the pinned object! Thank you both very much!! :D

  • I know this has already been solved, but I'd like to suggest also a Condition in the touch object called "On Touched Object". This only performs actions when the user has just touched the screen in contact with an object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I understand that this will sound confusing but here's the best way I can explain this.

    I currently have a Fireworks style game. Each firework has a particle effect (sparks) pinned to it. When the firework flies up, the particle sprays, when it goes down, the particle stops spraying.

    This works perfectly well for one firework at a time, however when more than one firework is in action, all particle effects won't spray if at least one of the fireworks is going down.

    I've been working on this for about an hour, my best guess is that because of the way I've written it, the events are acting on all instances, instead of the instance pinned to that object. I figured that I could have a condition for "If sparks is pinned to firework", but the condition doesn't exist. The only condition that Pin Behaviour has is "Is Pinned" which doesn't help me at all.

    I've also tried conditions to check if the spark's position is equal to the firework's position, and if the firework overlaps the sparks, but neither work.

    Here's a screenshot of my fireworks event sheet:

    <img src="https://dl.dropbox.com/u/30381754/FireworkSheet.png" border="0" />

    Any help will be greatful, feel free to ask about the event sheet!

  • Hey there!

    The name's Gamepopper, I'm a game maker, games programming student and an animation film reviewer.

    I made my first game on Construct2 back in February, which got me a job as a Windows Games Ambassador for Microsoft! I'm gonna try and make more since Construct2 is a really sophisticated and easy to use system for making games, as long as my University work doesn't hold me back.

    If you wanna see what games I've made, check out my site here: Gamepopper's Game Development Site

    If you wanna see what animated films I've reviewed, see here:

    Animacritic

  • I'm using release 114 (64-bit)

  • Hello, I'm not a real expert in JavaScript or Windows 8 games development but I'm having problems with a game I'm making for the Windows Store. I'm getting these errors from the exported files I get when running in Visual Studio 2012 for Windows 8:

    1.

    this.Zg&&(new Windows.UI.Popups.MessageDialog("Note: this Windows 8 app is in Test Mode, designed for testing purchases. Before publishing, be sure to set Test Mode to 'No' in the Windows 8 object's properties.")).Eo();

    ".Eo()" is apparently undefined and it throws an unhanded exception. Removing ".Eo()" makes the app run.

    2. HTML1701: Unable to add dynamic content ' <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>'. A script attempted to inject dynamic content or elements previously modified dynamically that might be unsafe. For example, using the innerHTML property to add script or malformed HTML will generate this exception. Use the toStaticHTML method to filter dynamic content or explicitly create elements and attributes with a method such as createElement. For more information, see go.microsoft.com/fwlink

    Appears in JavaScript Console as an Error.

    3. [Construct 2] Error loading WindowsStoreProxy.xml: WinRTError: A quota was exceeded.

    Also appears in JavaScript Console.

    I've tried to submit the game twice, first time it failed the security test (updating the Certification Kit and running a virus/malware scan sorted that out). Second time it failed the component test because the game apparently crashes due to an "Access is Denied" error on this line:

    this.Hi.licenseInformation.addEventListener("licensechanged", function(){a.a.trigger(vd.prototype.e.Gk,a)});

    According to the error report that provided me.

    So can anyone explain to me what this issue is? I'm not sure if it's a bug with Construct2 or an issue with my version of Windows 8 Pro or Microsoft Visual Studio or even JavaScript. Any help would be great! <img src="smileys/smiley1.gif" border="0" align="middle" />