Brandons404's Recent Forum Activity

  • Hey there! I unfortunately cannot give any picture examples as I am at work right now, but you said you have the game save the player's progress.. when are you doing this? I have a couple ideas for this.

    1. Save the game after each level. Then they would be taken to the "level" select screen for example.

    2. You can save the game at any time, but have a "on save loaded" event so that when a save is loaded after starting the game again, switch to your main menu layout immediately. This would require you to have some global variable for keeping track of unlocked levels (which I assume you do).

    3. Though I have never experimented with it, I'm sure you could store data about level progress by using "local storage" rather than a save-state, but these are my ideas. I wouldn't mind testing these when I get home if you would like me to.

    Hope this helps!

  • Thank you dop2000. Your reply worked wonders. This got rid of the spastic movement of the camera object and I dont have to bind an object to the layout. Thank you!

  • I wish I had an answer for this.. I can't imagine why youd want to as this would be incredibly slow but I will follow this to see if it gets a reply. Perhaps something similar using google sheets and an attatched google API would work with ajax requests but I wouldnt know how to go about that with my current knowledge

  • 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?

  • Try Construct 3

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

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

  • 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!

Brandons404's avatar

Brandons404

Member since 13 Mar, 2017

None one is following Brandons404 yet!

Trophy Case

  • 7-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

9/44
How to earn trophies