PKrawczynski's Recent Forum Activity

  • ScrollX/ScrollY would be correct if game wasnt scaled. When it is scaled, values are wrong.

    ViewportRight - same problem, if game uses any scaling value readings are wrong.

    Or im pretty much complete retard but its bit annoying there is no access to "scale" property anywhere.

  • My game uses scale outer so it does scaling by construct2 magic.

    I want to put something on the middle of the screen.

    WindowWidth/Height returns value of unscaled game window/height.

    Example:

    GameView width is 400 but canvas is 600 so everything gets scaled by 1.5

    If i use windowwidth/2 i will get 300 and not 200 wchich I need and want.

    thats perfect case because scale can be just anything.

    Why isnt it implemented by default in c2? ScaledWidth and ScaledHeight? Can I get some "GameScale" value anywhere?

  • You can use Vertical Space Shooter from inside construct2. Thats what I did. No need for me to upload capx therefore.

    Use firefox 23.0.1 or iphone/ipad/playbook/bb z10

    you MUST NOT use debugger, and just start normal testing - debugger will suprisingly make everything work as intended.

    Problem: After just few seconds render stops working, so things are frozen in place BUT logic involing "dt" is doing fine, exactly what it should. After that pause render catches up and never stops again.

    I started using construct from 139 but it happens in all versions ive tried.

    If you cant replicate this I might record whats going on. Just let me know if it doesnt happen to you when testing for it.

  • Hello so basically Ive figured out all the performance hiccups im having on mobiles are because my gameplay objects are created during runtime and there is no art for them in memory like there would be if i placed everything in layout.

    Thats my conclusion because game after 1 minute of gameplay stabilizies and never has hiccups anymore.

    Any ideas how can i battle this? It doesnt really affect desktop or webgl enabled devices but my main priorities lie with browser iphone and ipad + other devices that work with canvas2d only.

  • PKrawczynski

    You'll have to be very picky for mobile performance. Usually for mobile games optimization is a huge part of it. Have you been checking your memory use on the C2 editor? It should give you a general id of the amount of memory your game wastes when running.

    Im aware but problem is that no matter what player does, game hangs up after few seconds for a bit like from 2 to 5 seconds. He can even be in main menu screen and it can hang up!

    we cant say its because 1 image and 2 sprites are too heavy for iphone can we?

  • any link to a html5 export?

    It was on the bottom of the post :) its available at:

    m.blackmoondev.com/rrh

  • Can mobile web performance be looked into?

    I wouldnt mind sending Scirra employes zip file with game so they could look whats going on and why iphone/ipad have terrible performance.

    Just give me email where it would be apriorate.

  • Bump because its important - second game im finishing up have exactly the same problems.

  • I cant debug on mobile and my game hangs up for several seconds after you click play and gameplay starts. It works fine for 5 seconds or so, then there is 5 second pause and gameplay resumes normally. Its terribly hurting game quality.

    m.blackmoondev.com/rrh

    Compiled with 139

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey :)

    Ive managed to make game in few days generally im VERY happy with construct 2 but there is one very annoying problem for me, specifically when game starts to process gameplay logic after few seconds it pauses and nothing is happening - how long it takes depends on device. On playbook it is around 3-4 seconds, on nexus 7 it is 2 seconds, iphone4 3seconds etc. Why is that? Can it be because of garbage collection of main menu screen?

    Game is playable here (but it is NOT free for distribution or embedding yet)

    m.blackmoondev.com/rrh

  • Okay basically neverwmind right now because:

    1. It started to happen in that game no matter what version I use

    2. I dont have time right now to write tests and upload .capx - there is no way I would upload fully done game publicly with sources. Thats why I provided pic.

    It probably might not even be bug, could be connected to specific resolution, scaling mode, anchor settings - truly, impossible to find out without good minimalistic test. Im aware of that :)

    I might get down to it in few weeks if it bothers me enough but more realistically I have in plans to make small utility to position items on screen as Anchor is lacking "center" behaviour.

    Thread can be pretty much closed right now or deleted.

    Thanks.

  • Ah okay pretty cool, so i just have to add subevent :)

    Neat.

PKrawczynski's avatar

PKrawczynski

Member since 3 Sep, 2013

None one is following PKrawczynski yet!

Connect with PKrawczynski

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies