GeorgeZaharia's Forum Posts

  • In the parameters of the global variable are a Boolean variable or a number or a character string? Thank you in advance for the answer.

    a number or a string it depends how u want to do it, but based on my suggestion would be a number.

    detect input method C3

  • instead of -500 u have to tell it to subtract from the self vector y some amount

    Jumper.set_Platform.VectorY to: Self.Platform.VectorY-50

    -500 might be to much

    if you want to use the distance between roll and jumper u do the same thing but with distance

    Jumper.set_Platform.VectorY to: Self.Platform.VectorY-distance(roll.x,rollx.y,jumper.x,jumper.y)

    i wanted to post a hand gif so bad... cause of the title... but my better self got to me :-s

  • Most C2 tutorials can also be used for C3, as long as it doesn't require any C2-only plugins.

    Even those can be used, but ud need to use the C2 to C3 addon convertor and run the plugins in the C3 project using the C3-c2runtime.

    However those tutorials with C2 only plugins if converted to C3-c2runtime might not work on mobiles... so yea... reading in more details what the specific plugin can do and compatibility with devices on the plugins original developer helps.

    But i guess as dop2000 said 1st u gotta start with tutorials and manuals and stuff, to get an idea how things work.

  • It was actually a "maybe" feature for Construct 2, that is now advertised as a potential of the Construct 3 runtime: construct.net/en/blogs/construct-official-blog-1/the-future-of-the-construct-3-runtime-884

    called "modular events"

    Edit: Wow that time I spent searching was enough for a few people to reply, it seems :o

    Yea i was checking your reply then all that links and replies towards what was actually said about it came up, it's amazing, i guess i skipped the blog reading on this one. need to subscribe to the blog news ^_^. But is probably one of those features that will take place or not, as making plugins from different js libraries or other languages, needs a huge database of interpretation programming... and i doubt that is something that is needed right now. As you said also, it's a possibility.

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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