DozeMaster's Forum Posts

  • Probably a dream, unless you read some plugin request, but i doubt is anywhere near to completion or even in sketches, thing is it always going to be the need of manual coding.

    There is a C2 to C3 -c2runtime plugin convertor but that still requires some knowledge and manual labour at minimum.

    However would be nice to have a visual scripter, for creating plugins or behaviors similar to Construct way, imagine how many plugins can be made ^_^.

  • a simple solution to this is to create a menu before the play game, and give the user a list to select its controllers.

    for example before start game

    list appears with keyboard+mouse | mobile | controller.

    user selects the prefered input and only that controlling code should be active during gameplay.

    if he wants to change controls can go to settings for example (u have to code that), and select other input method.

    this way u avoid saving inputs into variables. u just save a global variable call it controls, and give it value 1 for mouse+keyboard | value 2 for mobile| value 3 for controllers, then on start of game layout if value is 1 then activate group for events used to use the inputs for mouse+keyboard if its 3 then use controllers group input.

  • u can also do it the old way using Y instead of Z ... but it might be to heavy with to many objects in screen.

    Edited: u need all objects that are supposed to be sorted to be put in 1 big family... so they all get sorted, as dop suggested.

    message quoted from this dusty topic: set z-order with number

    Sort by Y coordinate:+ For each Sprite order by Sprite.Y ascending -> Sprite: send to front

  • 1) if u watched the multiple animations tutorial for guns, u can do the same thing, but instead of one sprite with lots of animations splice the animations on different sprites, and use the sprites. is the same process but with N_animations*number of guns*number_of_skins_on_gun_as_animations.

    ul have to double check position of image points of the gun, and other things like that, which will increase ur code events, but u can add all ur weapons in a family for general coding, and use sprites for picking the weapon etc.

    2)u will probably need a array or xml or localsaving thing if u want it to have a custom shop that saves the current equipped and unlocked weapon.

    there are various hints and tips to give, but it all depends on how u want to do it, if u want to update the database of the guns in store, id use xml and put it on a website hosting somewhere where u can edit the guns players can buy or unlock. for xml information u can check the xml tutorial in C3, is rather simple and is amazingly simple.

    3)then use the xml with a array or localstorage or online database for players to check what they unlocked/equipped etc and when he starts the game compare all the data and equip the player with his last items he had before he quitted game.

    but that is more of outside what ur question was.... see point 1 for subject relevancy.

  • sorry that was a bit presumptuous of me. it can also be ur firewall as u hinted, or the other persons firewall when u are live on internet, or it can be the webrtc is not supported on some end.

    i said that because the code looks rather weird, comparing it with how the tutorial of chat message works, and order of things. yours is using the sending message code right, but everything else is backwards.

    for one that line there, ur using, works for localhost for some reason..... i have no clue why(probably cause u are both on the same connection? if ur running from the same device on two browser tabs?), however, id change the else condition to a inversed condition of is host... else sometimes if not used properly can mean anything making the system confused, especially when is followed by another else on a bellow condition that we might not see.

    also if u change the else condition to a inverse condition, make sure the host coding is always last, as u would want that to be always checked last not the peer.

    but if its working in preview should work online ... however that is not always the case with all the construct objects, can we see the multiplayer code in a separated capx file that wouldn't make ur game public? i wanna alter it a bit. because some of the send data coding ur using.

    or u can check this file here and compare what is wrong on ur end, to connection to server and message coding.

    Edited: --- disregard the P.S--- this is meant to be read quietly... it can also be a bug.... shhhhh

    have u tried ur code on different versions on C3? what is ur current one ur using?

    there are various reasons why doesn't work once u go live.... but 90% of the cases is the code.

  • Ping and packet loss is not the issue since connecting and joining is instant, and it's not an explanation for 100% of messages being lost in 100% of the cases.

    oh then is definitely ur code. is that image covering all the coding on multiplayer?

  • internet connection? if im not mistaken the webrtc servers are peer-to-peer connections, which means you connect directly to the other user that is hosting (the server only connects you to the other user and updates surtain inputs other than that is all peer to peer i think), if he has a bad internet connection your ping will be high = in delays, and data package loss. That's why when u log on same localhost, connection being local, and not over internet, works faster.

  • I tried exporting to WEB HTML 5 "Publish to web to run in a browser"

    The zip file has a bunch of files in it, none of which run the game.

    Any help would be appreciated

    you need to upload the zip on a hosting service or website, unzip the file you got from Construct on your website hosting service, which should create a folder once unzipped.

    you can also unzip the folder on your pc, then upload the folder with all its contents on your website hosting service via ftp, or browser file manage provided by your website hosting provider.

    then access the game via your website by going to www.websitename.tld/folderzip/index.html

  • sorry i forgot to post the link to the addon plugin addon c3

    there is also spline i think having a C2 plugin but im not sure.... if it will work with C3 - c2 runtime

    rex_spline

    oh i forgot about dragon bones lol XD nice cool u found something.

  • Thanks Corp. Its taken two days of playing about with different programs. I think sprinter might be good but would need to pay for it to get the png files.

    I checked the store, is sprinter 2d different from the actual sprinter because its cheaper?

    i have no clue, but i think the free version lets you export a spritesheet and animation files as xml, or scorn file i think is called,actually but doesn't let you use functions like advanced bone systems, and kinematics i think. the tutorials they have should clear that one up.

    features of sprite free vs spriter pro i think spriter 2 is just like a advanced version, like C3 vs C2... but they both do the same thing plus minus some features, and pro version is either of those but paid i guess... is kinda unclear... they should definitely update their features and what means pro and what means spriter 1 or 2... i find it very confusing. But it should help you animate stuff easier even in the free version.

    Edited: quote feature #17 "Export animations as PNG images, strips, sheets or Gif Animations" available for free version.

    lucid might have a better answer on this one.

  • Spriter -2d animation and there is even a plugin that supports spriter animation in Construct 2, and i think int C3 also.

    there are other softwares also (anime studio, tupi tube, pencil 2d, toom boom etc), but if u have your character exploded apart you can animated the character yourself, sure is tedious and takes a lot of time, but won't relay on a software to do it for you.

    and here is a full list of plugins, features u can get for C2 /C3 scirra store game making tools

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i think airconsole plugins or api's where something people used some time ago to do this for Construct 2.

    airconsole

    I'm not sure if it's still a thing, but for sure, should be possible.

  • Sorry just got what you were saying! . Throttle using performance audit. Not the sharpest tool in the box me.

    Let me go home now, play daddy for a few hours, then check the surface pro. it maybe a graphix capability thing and the surface will show that for sure.

    don't worry i tested it out, is just an audit for testing surtain apps that run in browser.... i runned it on C3... ehm... outside some css and js loading slower cause of size... there is nothing to it... monitoring heap snapshots and other stuff killed the browser so don't worry about it really ^_^ continue the daddy play

  • yea it doesn't seem to be actual local storage as it doesn't get cleared when clearing cache in settings (which normally clears local storage). I looked into it a little apparently it is for use by web apps for more robust storage of larger files but yea much tech stuff above my pay grade...

    have you tried the browser audit performance option? found in f12 chrome or developer tools audit... i just swapped on desktop and applied cpu + memory throttle i wonder if that helps... i don't have a 1000 event sheet template to run it atm.

  • thanks for sharing! i think i talked about something similar a couple of weeks ago, a user on forum was having some mobile problems with memory full, and i kept saying might be the caching storage, not the ram or vram, as those he mentioned has plenty off.

    but i didn't knew about this indexdb i was just suggesting clearing the data in the history/clear cached data (images and other stuff)