Fengist's Forum Posts

  • F = 0
    Толчок = 0
    
    Press space:
    Accelerate 30
    Толчок=15000
    
    F=0+2
    Accelerate 30-2+2 = 30
    Толчок = 14000
    F=2+2
    Accelerate 30-2+4 = 32
    Толчок=13000
    etc..
    F=28+2
    Accelerate 30-2+30 = 58
    Толчок=0
    
    Press space again:
    Accelerate 30
    Толчок = 15000
    
    F=30+2
    Accelerate 30-2+32 = 60
    Толчок = 14000
    F=32+2
    Accelerate 30-2+34 = 62
    Толчок = 13000
    etc...
    F=58+2
    Accelerate 30-2+60 = 88
    Толчок = 0
    

    It's doing what you're telling it to do, increasing the speed.

  • Well, the brief look I took, I saw the numbers over the blocks being displaced. By anchor, I meant, did you use the anchor or pin behaviour on those numbers in order to lock their position over the box?

  • Did you 'anchor' the text to the blocks?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    Well, wasn't really a correction. You provided more details so I could provide a better answer. I'll be interested to see what you create.

    irrelevant

    stop misleading

    Misleading? Irrelevant? I don't know what planet you live on but the physics on my planet dictates that a cell phone is NOT going to host 1,000 players simultaneously. Period.

    Furthermore, the physics on my planet is dictated by the speed of light. Whether the player is farther away or closer to the server has ZERO relevance on how the server is communicating. DISTANCE determines the delay in the signal whether it's UDP, TCP, FTP, HTTP, Websockets or a tin can on a string (ok, so that last one is dictated by the speed of sound. Same principle).

  • Well, until recently, I've been able to right click elements on my layout and 'inspect'.

    Now, when I run in preview I'm having to "open in chrome", go to the dropdown menu, find dev tools, open that up, click on the element tab and then drill down through the html to find the element I want to look at.

    Multiplayer in C3 is now "thing of interest" for me or how to say it. :)

    I would like to ask about connection with Multiplayer plugin in C3, I read all these manuals as Ashley mentioned and yea it is difficult but thanks Ashley that it is very well described. I also tried chat example and experimenting with it.

    1. When I am on same WiFi network it works 100% like Lan.
    2. When I am on different WiFi there is sometimes problem then peer is disconnected so I guessing that host must be behind proxy, NAT or blocked some ports etc.. am I right? Simply host is not visible for peers.
    3. I also tried it via mobile data connection and it did not work. What is different in this case?
    4. What about publishing the multiplayer game (via C3 and their signaling server) on Google Play? Can there be a problem with the content (referring to the server) or requirements of additional permission on mobile?
    5. Lastly what about predefined Google play games API for multiplayer similiar to Google play games Leaderboards etc is it possible to implement it in C3 and may it be better?

    Sorry for maybe strange questions but I am begginer in this area and I will be really glad for further explanation and tips for better understanding of whole thing. :))

    I'm afraid you're delving into an area where few have traveled. I am working on a multiplayer game as well but mine will be purely web based and won't need to keep track of player movement. Thus, my ability to answer your questions is limited.

    A lot of things can affect your connection. Something as common as Windows Firewall can deny a connection.

    There will be additional requirements if you publish on Google Play. You're going to need to research their actual terms to figure out what you can and can't do. I do know that you can connect remotely to other devices. Plenty of apps do that.

    As for leaderboards and handling real-time multiplayer connections, I suggest you look into websockets and creating your own websockets server as well as Ajax communications with web based servers. While the multiplayer plugin does work and will work for low latency connections it does have it's limitations. Since a game client acts as the host, the number of connections to that game client is going to be limited both by the power and the location of that device. If your host is in Germany on a 10 year old cell phone and all the other players are in Australia on desktop's, it's going to have issues.

  • Has right-clicking on elements to bring up the Chrome menu been disabled in 152? I usually run my project and right-click to get to developer's options so that I can examine my HTML in detail and look for any JS errors. Now I did have code that disabled right clicking in my custom js but I took that out.

  • I forgot there was even still any documentation up on scirra.com. It's probably years out of date. The up-to-date SDK documentation is here.

    Thanks!

    Years ago I ran a site that was a 'search engine' for MUD's (Multi-User Dungeons). One of the things I did was to keep track of all the things people searched for and rank them on an inside page. Over the span of a week or so I noticed the hits on my site went through the roof. When I got to digging I found out why. On that list of top searches, someone had searched for Pokemon porn. Google snagged that and within a week, it ranked my site as the top destination for Pokemon porn.

    Seems your inside page was #3 ranked for "Construct 3 developer mode."

    scirra.com/doc/c3sdk/enabling-developer-mode.html

    Google, sometimes it works too well.

  • Fengist Looks like your on an old version of the documentation, I didn't even know there was a copy on the Scirra site. You can use safe mode to load the editor without any addons, then delete the addon using the addon menu.

    Safe mode. Didn't see that. Thanks.

  • You will love this tool...

    https://www.construct.net/en/forum/construct-3/plugin-sdk-10/c3ide-construct-plugin-ide-141201

    Thank you. Now that's more like it. An IDE to work with an IDE. I had a few moments to look around and seems easy enough to use. I'll give it some more time in the next few days.

  • So I've stated numerous times on these forums that I'm a JS noob. However, I got to looking at the code for a plugin I work with a lot and found a lot of things that could be 'improved' or removed in order to fix certain issues I was having.

    I decided that a complete rewrite of the code would likely be the best course of action, since it has an MIT license, and I'd look at releasing a 'simpler' version. So, in this plugin creation quest, I first looked for a boilerplate that would make getting started easier and found something that would work in the plugin SDK.

    The first task would be to change a number of variables from 'myCompany' to something less generic. That task accomplished, I decided to install my very basic plugin and see what happened.

    I was not happy. Because I didn't get all the variables changed, the plugin promptly crashed C3 when trying to load. I was greeted with this HUGE red screen with a HUGE list of errors. Ok, so I goofed that up, let's try again... or so I thought.

    I quickly discovered that the only way to remove my faulty plugin was to go into the developer console and clear out all of the local information for C3. This also meant that all of my preferences and all of my other installed plugins got wiped. Grrrr.

    Ok, so there must be an easier way to do this. Ah hah! Developer mode! Ummm wait a minute.

    https://www.scirra.com/doc/c3sdk/testing-developer-addons.html

    In order to develop a plugin I was going to have to set up my own web server?????

    Ok, so I've set up LAMP stacks in the past and getting them configured properly is a pain in the...*

    And then, I'd have to get the CORS correct and even then, Chrome may throw a fit if it's mixed content and then, I was going to have to tinker around with addon metadata... uhhh... hold on here.

    Now I realize that the whole purpose of this is to prevent re-zipping an addon every time you make a change and reinstalling it. And were I to take up serious plugin development, yea, I'd probably jump through these hoops. But right now, I'm just toying with the idea and having to completely clear the browser cache because I goofed one line of code seems a bit extreme. It occured to me that a checkbox on the error screen, "disable this plugin on next load" would keep me from having to wipe out all of my settings and still let me tinker with writing plugins without having to dive in head first.

    So I'm wondering, has anyone else considered creating a plugin, taken a look at the hoops you'd have to jump through, and came to the conclusion I did?... oh the hell with that.

  • I hope you know CSS.

    construct.net/en/make-games/addons/190/html-element

    That plugin should do it however you may need this plugin as well.

    construct.net/en/make-games/addons/166/inject-css

    in order to load a custom CSS into your project.

    The HTMLElement isn't exactly user friendly and it'll take some work with CSS to get it right but it should be achievable. You should also be able to set the HTML to call a function in C3 when an image is clicked.

    Inside your <img> tag you'd add something like this:

    el-on:onclick="myFunction(myParameter);"

    I haven't tested it specifically with images but it should work.

    As for transparency, and I haven't tried this, there is an 'attribute' field under HTML for the HTMLElement plugin. I'd try

    background-color: transparent;

    and see if that works. It SHOULD default to transparent.

  • I didn't plug this in to see if I got the syntax right but I believe this will work.

    	(Browser.ExecJS("Date.UTC("&Year&", "&Day&", "&Month&")"))