Reflextions's Forum Posts

  • That you can use the F4 key to start the preview from the 1st layout.

    4 years and I never knew this. Thank you!

    This is more game design in general than just C2, but tween EVERYTHING. lerp() should be your best friend.

  • Thanks for the official response Ashley

    Safari has always been such a pain to work with, it's a shame it's the default browser on iphones.

  • I had this issue multiple times too and didn't know how to report it either, but i think it has something to do with webgl effects combined with the sprite font object.

    Try to fix it by deleting the webgl fx from the sprite font, save, close and reopen the project and if that fixed it try to re-add the fx.

    I don't have any sprite fonts with webgl effects, but I do have some other objects with effects on them.

    My drivers are fully updated, and windows 10 is as well, so there's no way to re-install directx:

    https://support.microsoft.com/en-us/kb/179113

  • scirra.com/manual/110/browser

    Request fullscreen

    Request that the browser enter fullscreen mode. Note the browser may ignore this request unless the action is in a user-initiated event, such as a mouse click, key press, touch event or button press. The fullscreen modes that can be entered correspond to the Fullscreen in browser project property. For more information see supporting multiple screen sizes. Note not all platforms support requesting fullscreen - use the Supports requesting fullscreen condition to check for availability.

    That's what I've been using, I may be remembering incorrectly but I believe there used to be an event to hide browser url bar. Maybe it has been replaced by this. I was trying it at the start of layout so I tried making it a touch reacted event but that didn't seem to work either. So it appears the answer to my question is no.

  • Looks like there was a misunderstanding here, I'm just accessing the game through the safari webpage. It's exported as an html5 website.

  • I've talked to another developer and he tells me safari on ios doesn't respond well to js. That would explain why this doesn't work here. Is there any way in construct 2 to do this? Perhaps a way outside of C2 with custom code on the game page...

  • I have updated the entire post with new information and links, please try on an iphone 7 plus or iphone 5/5s if possible. Regards.

  • Thanks guys, updating now, I'll let you know if I still have problem after.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can't post this in the bugs section yet because I can't intentionally recreate it, but a few times since the update I've gotten this bug in both projects I'm working on. This has happened on layers with no webgl effects, but when I disable effects the bug issue goes away. Could it be a rendering issue? I'm on AMD (Windows 10), latest stable release.

    Certain object will get randomly warped in one direction in another, with nothing selected. The more I zoom in the more warped they get unless I zoom out and they go back to normal, or zoom in really far and they go back to normal.

  • It wasn't removed, iOS10 changed the way Safari responds to certain feature calls.

    You have to use this instead on the first layout:

    Browser -> Execute Javascript = "StatusBar.hide();"

    Then you can request Fullscreen.

    Thanks! I just tried on my device and it didn't work unfortunately. Can anyone comment if it is an apple restriction?

  • I've tried requesting fullscreen, but that doesn't seem to work. Why was this feature removed?

  • PM'd.

  • PM'd.

  • >

    > > I can't figure out any purpose of trying to figure that out but you can simply create an object numerical variable and set the value there since you, as the dev, should already know the number.

    > >

    >

    > I'm doing that right now but it's not a very good solution because if I add or remove anims I have to remember to update that number. In my case i'm using each different animation for npcs and I need to fill an array with each animation to generate them without repeats, but repeatedly. The choose() function is kinda terrible at being random.

    >

    Why don't you just use one array and filled it with the names of animations shared by your NPCs and just randomly picked one of them to be used?

    The width of the animation array is your animations count.

    It is as simple as int(random(1)*AnimationsArray.Width) which will serve to check which array x-index and animation to pull out.

    If you don't want repeat, just remove each index that have been chosen after all other computation is done.

    I'm doing that, my point is that is tedious and doesn't adapt to changes. It's not good practice to build things that break when you change something else elsewhere.

    I created a behavior that does this- it also can retrieve the animation name by its index value, or retrieve the index value by the animation name.

    But yeah, I don't know why it isn't implemented by default in c2.

    Awesome plugin, thanks!

  • I can't figure out any purpose of trying to figure that out but you can simply create an object numerical variable and set the value there since you, as the dev, should already know the number.

    I'm doing that right now but it's not a very good solution because if I add or remove anims I have to remember to update that number. In my case i'm using each different animation for npcs and I need to fill an array with each animation to generate them without repeats, but repeatedly. The choose() function is kinda terrible at being random.