Brandons404's Forum Posts

  • Hey there, I know this is late, but if you are talking about just the preview window for phones and pc (web browsers), then you must run Construct 2 as administrator and "Host" your preview. Choose the port on your pc that you want to host on (This is in File>Preferences>Preview) and you will need to give your local IP address to your friend. If you want to be able to test from anywhere, you will need to port forward, and give your external IP address with the port to someone. eg. 98.101.101.10

  • I implemented some panning controls in my game but it breaks once the "camera object" leaves the initial position at the top of the layout.

    I can't find anything anywhere to get the mouse position on the window, not the layout, as they are different sizes (layout is far larger). So When I "pan" outside of the starting position, it switches back and fourth really fast because the touch coordinates are adding the distance from the north and west edges of the window, and the layout edges.

    As a side note I absolutely scoured the internet and this website and spent hours in trial and error trying to get panning controls working.. I found one or two topics on them here, but one did not work and the other had a capx had an expired link. Please feel free to use the script I made for your game and let me know if there is an easier way to do it. I know there has to be than using 8 variables.

    Thank you in advance.

  • Thank you so much! I didnt know that, but it makes sense. I feel dumb now haha. now its accepting it but isnt doing the calculation, where it should say the final result, it just says NaN so I'll have to play around some more. thanks again!

    -edit: I fixed it, I was missing a period in another line

  • You could use "set time scale" (normal time scale is 1.0, half speed is 0.5 etc..) but I think that freezes or slows EVERYTHING so I dont know if you could do it per object. maybe change the bullet behavior speed to 0?

  • I read somewhere that its not possible.. I was trying to host my own server but I came across the answer that you have to use the signalling server..

    on a side note, Lordshiva1948 posted how to host your PREVIEW to lan (which wasnt relevant..) but you can port forward and make the game preview playable worldwide.

  • Both of these are great responses, Lancifer said to try and replicate game mechanics you saw in a game, this helped me a TON. im not an expert, but the reward of finally figuring out how to do something when you've tried and tried and researched and then it works is priceless

  • I'm trying to make a type of calculator for my work and I want to subtract global variable 2 from global variable 1 and then subtract global variable 3 from that number and paste it to a text object. so far I have "HIGH: " &HighLevelStart - &DropLossHigh - &SplitterLoss

    It doesnt like me using the & signs, I've tried with and without parenthesis, with and without & signs, I'm kind of stuck. thanks in advance.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hey everyone, I just recently updated to the full version of C2 but I've been using it for years. I know how to use the program very comfortably but I'm trying to learn how to take advantage of the multiplayer tool and it's boggling my mind. I've tried my hardest to tear apart the example projects and I've seen probably every single tutorial about the signaling servers and whatnot as that's what everyone posts a link to but I've read it a million times. My current goal is to make a host server for people to play on for a simple co-op game. A LAN connection is as far as I want to go right now. I know how to do same-device multiplayer but for two games to connect to eachother would be cool. I guess what I'm asking is for someone to really layout the absolute basics for peer-peer or peer-host connections like I'm a 5 year old. Thanks in advance!