Bl4ckSh33p's Forum Posts

  • Thank you, I will try this tomorrow. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Here is an example: http://youtu.be/qqtyGuV49rc?t=5m7s

    there are red triangles appearing around the circle in the middle if the current target is outside of it.

  • Thanks, this will point the object towards the object out of screen and works fine if you have some kind of compass or a fixed position for the pointer. But do you know a good way to position the pointer around the screen? So Object1 is in the upper right outside of the screen the Pointer Object should be in the upper right corner. And if I move right it begins to move to the middle because Object1 is now above me (but still out of screen).

  • Hi. I am working on a new game and want to use the scale feature to zoom in/out of the layout. There is a special object in the layout and if it is not in the current viewport (not visible) there should be a new Icon in the HUD pointing to the location where it is (in the upper right corner for example) and it should move when the player moves to always show the shortest way back. (like wing commander and other space shooters show the enemy ships with arrows which move around the screen edges)

    It found the "is on Screen" event and this should work with different scales of the layout. But did someone already make something like this and has some hints how to do it?

  • Nice.

    I had some issues with joining rooms and tabs. Sometimes when I open host and peer in a tab in Chrome connecting to a room does not work (peer stuck until I go back to other layout, come back and try to join the room again).

    I was told it should work on a dedicated server when I run the browser there (dont know how, yet).

    It "should" be easy on a windows server but Chrome runs on Linux too, right? (Linux Servers from 1&1 have php installed, Windows servers just have ASP/.Net)) But Linux will not run node webkit .exe exports so I think I will have to try a Windows Server (the current server stores data in a .txt with node webkit actions and cant run in browser tabs).

    But does anyone know how/if I can run multiple node-webkit exports? Launching the same file (or renamed .exe's) does not seem to work. Maybe I can create one export for each zone so every zone has its own project and folder when exported? But it would be easier to manage if it could be in one export.

  • Hi. I was told it "should" work if I get a Windows server to run a browser with multiple tabs on the Server (but I dont know how exactly to do it, yet).

    My local PC won't work as server because my upstream is too low to handle more than a few players.

    The German website from 1&1 says you have 30 days to test a server and get your money back. Dont know if this applies to 1and1.com, too.

  • Did anyone already try something like this? Maybe multiple tabs for the server could work?

    Like this: I launch it on my Server/PC and enter a Password or anything* that identifies me as "The Host". Now the game shows the Server Layout and there are Buttons or anything else to jump to the "Zones". Now I click on the first Zone and the Server now does all actions for this layout. Now I open the game in another tab or launch a second instance of Node-webkit (possible?**), log in as Server but this time select another Zone on the Server layout. So two layouts should be open and the Server can do thinks on both at the same time?

    *or maybe create a separate "Server App" which connects to the same instance/game IDs if you dont want anyone to be able to act as Host. (But I plan to allow user hosted servers so it should be in the game)

    **when I tried to run the .exe a second time nothing happened. and creating a second copy with another name did not work either. Is there a way to run a node-webkit export multiple times?

  • This may be possible but the file just contains shipclass, shipcolor and credits right now. (loaded at start, sent to player, saved when logging out). But the problem is how/if I can use multiple layouts to have different "zones" for the players. It seems the server just can work with one (the current) layout?

  • Hi. I started to work on a new small game and wanted to have a "dedicated server" running which stores player data in an array and saves it via nodewebkit to a textfile on the server. I created one Layout with all Server events and some other layouts for the players (login, 1. zone, 2. zone). But is it possible to manipulate items on multiple layouts at once on the Server? Or can the Server open multiple layouts at once to do this somehow?

    If a new player logs in can I create his entity in Zone1 even if the Server runs on another layout? (goto layout > create player > go back?)

    Did anyone already try something like this?

  • Oops. Thanks, I missed that one.

    I usually have the manual open everytime I open Construct.

  • Hi! I tried to use AJAX to load a local text/config file (node webkit export) but it returns no data (only a 404 not found error) if it runs in node webkit preview mode.

    When I export it it works. Is it possible to fix/change this somehow?

    Example:

  • Hi! Does anyone know whats the difference between Disconnecting from a room and leaving it?

    From the manual:

    [quote:2aegv5hr]Disconnect

    Disconnect from the room. If the room host, all players are kicked; otherwise the peer disconnects from the host. The room is also left on the signalling server, so another room can be joined afterwards.

    [quote:2aegv5hr]Leave room

    If in a room, leaves the room on the signalling server. On left room triggers upon the server acknowledging the request to leave. Note the room has not really been left until that trigger runs.

    If the host leaves a room its the same as disconnect?

    PS: There is no action to log out, right? You need to disconnect completely and reconnect to the signalling server?

  • I will try it, thanks. But it seems the current code above works if you set "Unbounded Scrolling" of the Layout to true and keep the player in the middle of the screen with the ScrollTo Behavior.

  • Hi. Did you use 8direction movement or the car behavior?

    I tried to implement "strafing" (moving left/right while still moving forward towards mouse position) but it's not really working, yet.

    I used Every Tick > Rotate x Degrees to MouseX, MouseY to keep the player always looking toward the cursor position. But with 8Dir the player moves just left/right regardless of angle and with car only steering (more rotation) is possible?

    How can you make the player just move left/right while keeping it moving forward towards the mouse position?

    /Update: I tried Custom Movement and it seemed to work fine first but the player object is drifting away/backwards.

    Any other ideas?

    /Update 2:

    This is the current movement code:

  • Closed alpha test has begun!

    The closed alpha test has begun and in this first phase only a small number of people will get an invite.

    The game is still in an early stage and many features are missing or not completed, yet.

    We try to finish more parts of the game as soon as possible and the next phase, where we will invite more people, will beginn soon. Because we want to show off our new game to as many people as possible to get more feedback and active players, we decided to invite everyone who submitted the beta form in an upcoming alpha phase. The following beta test will be public and accessible by everyone.

    There is still time to submit an application to get early access during the alpha.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi. When I tried to send numbers via a Multiplayer.SendMessage action or when I try to GoToLayout.ByName and use a integer/number variable nothing happens. I have to add "str(VARNAME)" to make it work. Do you think it would be possible and/or better to auto convert such numbers to a string if a string is needed by the action and vice versa? If a number is needed a string could become a number so the math or other code works.

    Some coding environments I used in the past have such a system and made it very easy to use variables with the "wrong" format and it can save you some time.

    Or are there any disadvantages or problems with this?