K1kk0z90's Forum Posts

  • Hello,

    I read the Delta-time and framerate independence tutorial. In particular this part:

    t very low framerates, dt can become very large. For example, at 5 FPS, dt is 0.2. An object moving at 500 pixels per second is therefore moving 100 pixels per tick. This can cause it to "teleport" through walls or miss collisions with other objects.

    Games are usually unplayable at such low framerates, but it is even worse if they become unstable like that. To help the game stay reliable even at very low framerates, Construct 2 does not let dt get larger than 0.1.

    In my game, in which I use the Bullet behavior, sometimes happens that collisions are missed when FPS is low. I would like to decrease the minimum framerate from 0.1 to something lower.

    How can I do it? If it is impossible from C2 IDE, could you tell me what javascript file do I have to modify to change that value?

    Thank you very much in advance! :)

  • Bullet behavior uses Delta time to determine number of pixels moved per tick, resulting in a constant speed in fluctuating framerate conditions

    Is collision detection continuous or there is the possibility that when FPS is low the object "passes through walls"?

  • I haven't managed to correctly hide address bar on iOS 6.1.5 yet. :(

    This is my code:

    On start of layout:

    • Browser: Execute Javascript "if (!document.getElementById('space')) { var space = document.createElement('div'); space.style.height = '60px'; space.style.clear = 'both'; space.id = 'space'; document.getElementsByTagName('body')[0].appendChild(space); }"
    • Browser: Execute Javascript "if (window.location.hash.indexOf('#') == -1) { setTimeout(function(){ window.scrollTo(0, 1); }, 0); }"

    This works when I open Safari on my game's page. But after I refresh the page, the address bar still hides, but the canvas doesn't fill all available space, but I get a blank border of 60 pixels at the bottom.

    Here are two pictures showing you what I mean:

    When I open the browser on the page

    <img src="https://dl.dropboxusercontent.com/u/36601350/scirra-hide-bar-before.png" border="0" />

    After I refresh the page

    <img src="https://dl.dropboxusercontent.com/u/36601350/scirra-hide-bar-after.png" border="0" />

    Any ideas?

    Thank you again!

  • Thank you for your answer Ashley, but I have iOS 6.1.5 on my iPod Touch, on which I am testing.

    It's great that iOS 7.1 will introduce minimal UI, solving the problem introduced with iOS 7. In the meantime, how can I hide the address bar on iOS 6.1.5? Thank you again! :)

  • I have tried using the Request fullscreen action of the Browser object inside of a touch event, but it did nothing on iOS 6.

    Then I tried another method, that initially works, but after refreshing the page doesn't work anymore. Here's what I did:

    On start of layout:

    • Browser: Execute javascript "var space = document.createElement('div'); space.style.height = '60px'; space.style.clear = 'both'; document.getElementsByTagName('body')[0].appendChild(space);"
    • Browser: Execute javascript "setTimeout(function(){           window.scrollTo(0, 1);      }, 0);"

    This way when I open Safari on the C2 app page it works correctly, but if I refresh the page, even if the address bar hides, a black border of 60 pixels appears at the bottom. Only when I close and reopen Safari it works again. Why?

    Any other ideas? Thanks!

    NOTE: The device is an iPod Touch (4th gen) with iOS 6.1.5.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all! :)

    I'm trying the free version of C2 to see if it could work for a mobile HTML5 game.

    How do I hide the address bar in Safari mobile? I have searched the forums before posting this, but it didn't help me. I saw some old posts talking about a built-in "Hide bar" option in the projects settings (if I understood correctly) but I'm using the last version of C2 and I can't find it.

    Here's what I'm doing: I set the Fullscreen in browser setting to Scale outer. The Window size and the Layout size are both set to 320x480. I exported the project as an HTML5 site that I put on Dropbox to test it on my iPod Touch (4th gen) with iOS 6 installed. The address bar is shown.

    How can I have the address bar hidden on Safari mobile? Thank you in advance! :)

  • Yesterday I installed the new version of Construct (I haven't used it for some days

  • No, I've downloaded the program about 2 weeks ago. Tomorrow I'm going to download the new version of Construct and try again your .cap.

    Thanks, I'll let you know.

  • I tried to open your project, but it gives me an error: "abnormal program termination". Is there something wrong maybe with the download hosting?

    Thank you again for your help!

  • Thank you for your answer.

    I tried it, and it works, but just for one block per time. I mean: if the character walks on a series of these blocks, only the first disappears.

    Any ideas?

  • Hi all!

    I've just discovered this great program. I was thinking about buying Multimedia Fusion 2, but now I will use Construct because it seems to be much better!

    I'm making a simple platform game, and I want to have a platform that, when my character goes on it, this gradually becomes transparent until it disappear. I'm trying to do it, but it doesn't work. I'm doing like this: I created a Sprite object for the platform, and I set Solid attribute to True. I added a Fade behavior to platform, but not active when layout starts. In the event sheet I added event Collision between Character and Platform. The actions are "Set fade behavior Activated" and "Start fade".

    But when my character collides with Platform, nothing happens.

    Could you tell me a way to do what I want? Thank you, and merry Christmas!