Sventevith's Forum Posts

  • I am adding support for mobile devices in my game but I've encountered some problems with Chrome one mobile devices.

    1) Load image from URL action for sprite doesn't load image. It works on desktop Chrome but not on mobile. Where is the problem ? Is this a normal behavior of C2 ?

    2) I know that on mobile browser background music start playing after first touch but in my case it doesn't. Do you know where is the problem ?

    Thanks in advance for help

  • Thank you for all comments. Now we are working to handle touch (mobile devices) and then to integrate game with GameJolt.

    If you like our game please give us a "like" on FB: https://www.facebook.com/wz32.net.

  • Yes, game is quite big ~115 MB.

    Backgrounds for levels are made from original photos (colored by us) which was made during Warsaw Uprising. Sprites was made by us - mainly blue box.

  • Newest version of game is available, now.

    Feel Free to post comment, any comments are welcome

  • Warszawa 44 is a shooter - target with reticle game with digitalized graphics. Storyline of the game takes place during Warsaw Uprising - Word War 2.

    ScreenShots:

    Game will be available on mobiles and other platforms soon.

    LINKS:

    Game: http://44.wz32.net/index_en.html

    WWW: http://wz32.net/index_en.html

    IndieDB: http://www.indiedb.com/members/wz32

    FB: https://www.facebook.com/wz32.net

    Regards

    wz32 team

  • I have problem with condition Mouse button released.

    My HTML5 game is embedded in iframe. I have condition if mouse button is released then stop doing something. When mouse cursor will be outside layout (iframe) and then button is released condition just doesn't work. Is it a bug or I am doing something wrong ? Comparing Mouse.X or Mouse.AbsoluteX doesn't work also because when cursor is outside layout (iframe) those variables are not updated.

  • This is not a problem with server MIME are correct.

  • Ashley

    1) Everything works from Construct 2 -> Run layout on IE

    2) When I've created little project with one sound which is not working and uploaded it on server it works but it was downloaded with status 200 so not partial. Firefox/Chrome also uses full download - 200 and it works.

    When application or IE use partial GET and when normal full GET ? How does it work from Construct 2 server ?

  • Ashley

    Game was exported using r178. MIME types are correct because for example music works. I've had problem with one of music track but after re-encoding to higher bit rate it works. I've tried to re-encode sounds but it didn't help and sound doesn't play. For me it is critical, missing sound impacts game logic because I use is Tag playing.

    Difference between working music and sound which doesn't works is in the request I think:

    For music:

    URL Protocol Method Result Type Received Taken Initiator Wait‎‎ Start‎‎ Request‎‎ Response‎‎ Cache read‎‎ Gap‎‎

    /media/menu.m4a HTTP GET 200 audio/mp4 306 B 78 ms 216202 31 47 0 0 677029

    /media/menu.m4a HTTP GET 0 0 B 78 ms 216280 0 47 31 0 676951

    /media/menu.m4a HTTP GET 200 audio/mp4 0.77 MB 1.84 s 216358 47 31 1763 0 675110

    last request details is:

    Key Value

    Request GET /media/menu.m4a HTTP/1.1

    User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

    Accept */*

    GetContentFeatures.DLNA.ORG 1

    Pragma getIfoFileURI.dlna.org

    Accept-Language pl-PL

    Accept-Encoding gzip, deflate

    Host 44.wz32.net

    DNT 1

    Connection Keep-Alive

    Cache-Control no-cache

    For Sound:

    URL Protocol Method Result Type Received Taken Initiator Wait‎‎ Start‎‎ Request‎‎ Response‎‎ Cache read‎‎ Gap‎‎

    /media/mp40breechpullrelease.m4a HTTP GET (Aborted) 0 B 249 ms 262753 218 31 0 0 630307

    /media/mp40breechpullrelease.m4a HTTP GET 206 audio/mp4 5.81 KB 281 ms 263002 0 266 15 0 630026

    Request/response details for last one are:

    Key Value

    Request GET /media/mp40breechpullrelease.m4a HTTP/1.1

    Accept */*

    Range bytes=0-

    User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

    GetContentFeatures.DLNA.ORG 1

    Pragma getIfoFileURI.dlna.org

    Accept-Language pl-PL

    Accept-Encoding gzip, deflate

    Host 44.wz32.net

    DNT 1

    Connection Keep-Alive

    Cache-Control no-cache

    Key Value

    Response HTTP/1.1 206 Partial Content

    Date Mon, 25 Aug 2014 22:47:56 GMT

    Server Apache/2

    Last-Modified Mon, 25 Aug 2014 22:10:05 GMT

    ETag "1a60403-309d-5017b72fb4dfb"

    Accept-Ranges bytes

    Vary User-Agent

    Content-Range bytes 0-12072/12073

    Keep-Alive timeout=1, max=100

    Connection Keep-Alive

    Content-Type audio/mp4

    Content-Length 12,073

    For sound we have Range bytes=0- attribute and server return only partial result STATUS - 206. Maybe this is the issue ...

  • Thnik is very strange because some sound which are not ok when I'am trying load game from server are ok when I run layout from constrcut2.

    So it look like some problem with server but why som sounds are ok and other not ?

    Do you have any idea ?

  • I know that using Adsense in iframe is against google policy. Google Interactive Media Ads was created for using in games and maybe is better solution then for example Leadbolt ?

    Does anybody use Google Interactive Media Ads (HTML5) https://developers.google.com/interactive-media-ads/ with construct 2 ?

  • Ashley - Thanks it works perfect.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley Is it possible to provide functionality to export only c2runtime.js in case of HTML export ?

  • Replacing takes a lot of time. Exporting only c2runtime.js only resolve problem. Maybe it should be a new functionality.

  • Aphrodite you are correct. Thank you, I've missed this new functionality.

    Preload sounds is a problem. Some sounds are corrupted like this one:

    visshoot.m4a HTTP GET 0 0 B 437 ms 2247 359 46 32 0 405

    When I've turned off preload game has been loaded without problem but some sounds are missing (don't play). I don't know why because on server size is ok not 0 like information from IE console (look above) and in cosntruct2 I'm able to play this sound after conversion. Probably this is problem with tool which is responsible for sound conversion because my source format is wav and C2 just converts sounds to ogg or m4a.

    Do you have problem wit sound conversion ?? How can I resolve this problem maybe some third party audio converter will resolve this problem. Do you have any idea ?