rf900's Recent Forum Activity

  • Problem Description

    ____ I am loading an image with the File Choose object. In PC it works fine, but in Android browser, Chrome and Firefox not. It shows a black image. ____

    Attach a Capx

    ____ http://anyone.hol.es/filech.zip____

    Description of Capx

    ____ A File chooser object and a sprite object. When selecting an image it shoud be loaded in the sprite. ____

    Steps to Reproduce Bug

    • Click File Chooser button
    • Select Image
    • Click OK,

    Observed Result

    ____ Image should appear in the sprite object (works on PC) on mobile browser Android Chrome and Firefox a black box appears ____

    Expected Result

    ____ Image should be loaded in the sprite ____

    Affected Browsers

    • Chrome: (YES mobile)
    • FireFox: (YES mobile)

    Operating System and Service Pack

    ____ Windows 7 sp2 ____

    Construct 2 Version ID

    ____ 233 ____

  • In the current version 216 there is a condition to check if Physics for object is sleeping. I've found that applying a force if that happens with 0 values is enough to prevent from sleeping.

  • Assuming all the texts are in a single XML I will do something like this...

    <dialogues>
    <conversation id="1">
    This is the first text	
    </conversation>
    <conversation id="2">
    This is the second text	
    </conversation>
    </dialogues>[/code:326mz5zm]
    
    You start with a ForEach node loop /dialogues/conversation
    
    Then inside the loop you can look for the id, XML.StringValue(@id)="1" and retrieve the conversation text with XML.StringValue("conversation/text()")
  • If they are different object types you should be able to check collisions separately, or pick the colliding object by getting the first instance (0). If the objects are of the same type it gets a bit more tricky.

    https://www.scirra.com/forum/check-vars-when-instances-of-same-object-collide_t83220

  • I think that you always need a XML Foreach node condition. Inside it you can check any node attribute. Like XML.StringValue("@eid") = "SOME_ID".

    Then in the action you can retrieve another attribute from that node, XML.StringValue("@gsis").

  • It may be messing with your global variables or event groups.

    Restart layout

    Restart the current layout. Note that unlike Go to layout, this action resets all event groups to their initial activation state. Global variables keep their current value - they are not reset. To reset them use the system action Reset global variables.

  • This is probably the browser security that avoids been able to close the window programmatically. If you can make another page that you control launch the game then you should be able to close it from the parent. Sending a signal from the game to it.

  • I am working on making a ball move and bounce, I wanted to get something that looked realistic enough without going into lots of formulas and perfect simulation.

    So far it looks good, but had to do some dirty hacks in the code to make it so. The worst part is detecting collisions at high speed, mostly with the ground. Is there anything else to do? The only thing that I can think of is having some sort of prediction before the collision occurs.

    Anyway, here is the capx in case anyone wants to play with it, I will update it if I manage to improve it.

    Need 7 more rep to put the link

  • Is there any reason you are using overlapping at offset, instead of the normal one or the in build collision detection?

    What that code is doing is internally moving Dexter origin position 30px to the right and down. Then checking if the two object polygons overlap, Dexter (moved) and ydinjate in its current position. That is why it fires up when the object comes from the top left.

  • You can also use negative values for the offset check, maybe that way you can make it work for the other two sides. But without looking at the code it is hard to know what the problem is.

    [quote:npv7t5ly]Is overlapping another object

    Is overlapping at offset

    True if any instance is overlapping any instance of another object. The collision polygons are taken in to account if set, as well as the object's size and rotation. The 'offset' variant will test for an overlap at an offset from the first object. For example, testing for an overlap at an offset of (100, 0) will temporarily move the object to the right 100 pixels, test for the overlap, then move it back again.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had some success using Lectora as the SCORM wrapper. Including the C2 game inside it in an iframe I can send and get values with javascript between the game and Lectora which is doing all the SCORM tracking.

rf900's avatar

rf900

Member since 22 Apr, 2015

None one is following rf900 yet!

Trophy Case

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

Progress

11/44
How to earn trophies