rjhusein3's Forum Posts

  • 10 posts
  • Yeah, it takes about five minutes max to get it set up, and then you can preview on mobile anytime you want..

    Quick simplified version (assuming you have windows and ARE CURRENTLY CONNECTED TO THE SAME WIFI ON BOTH YOUR PC AND YOUR PHONE.

    1) Go to Control Panel

    2) Click System Security

    3) Click Windows Firewall

    4) On left side, now, click Advanced Settings

    5) On the new popped up window, left side, click Inbound Rules

    6) On right side, click New Rule.

    7) Select PORT, click next

    8) Select TCP

    9) Click Specific Local Ports and Enter in " 50000-50100" (without quotes of course)

    10) Click Next

    11) Leave as "Allow Connection", Click Next

    12) Select what networks recognize the rule. I leave all selected. It's not really an issue. Click Next.

    13) The the rule whatever you want.

    Now that that's done (only time you'll ever do it) All you have to do is go to C2, right click the icon, and make sure you "Run as Administrator".

    After it opens, click on File. Near the bottom right will be a "Preferences" button. Click it.

    Click on the "Preview" tab.

    To the right of the "Preview on LAN Address" is a text box then a button with an ellipses -- "..."

    Click that button [...]

    Double click the only, or one of the, numbers that starts with 192.

    Click OK.

    Close C2 and open it again, remember to "Run as Administrator"...

    Now click preview. Your browser should pop up your game and the address bar should have "192.168. blah blah blah"

    Open your phone's internet browser and enter in these exact same numbers and click GO.

    It may take a minute to load, but your game will pop up on your phone.

    Any time in the future you want to preview on your phone, make sure your phone and pc are on the same wifi. Run C2 as administrator, go back to the preview preferences and re-select the 192 number. (This changes when you connect to a different wifi. I move around a lot and that's why I leave my firewall open and have to reselect the number everytime. Then restart C2 as admin and preview. You should not have to ever change the Firewall rule.

  • > scirra.com/manual/122/testing-and-publishing

    >

    thanks can I use a usb for a local network test I would prefer a wired connection over wifi

    Hmm, I know that's possible for regular files, like images and docs, but not sure if you could "mirror" your pc that way... The wifi method is a very effective and easy route to take. Are you just on an insecure network?

  • I'm playing around with the C2 provided example of Touch-zooming capx.

    I've touch it up a bit to fit my game, but for the life of me, I can't figure out how to set a max layout scale. I basically want my min to be 1, and max be something around 1.5

    I've looked through Google, Forums, and Tutorials. I find a lot of people asking the same question, but with a lot of indirect, unhelpful answers. But if you know of one that I may have missed, please feel free to simply link me. I really appreciate it!

  • I'm pretty sure the limit for the integer is even lower than that or it'd be working up to a Decillion. So far I want a limit to a Vigintilliion, which would be 1e+60. But I can't get past a Quintillion. I'm trying to think of more things people will spend money on, so their numbers don't get too high. I also thought about using "Vaults" or "Banks" to store a maximum, and then you start on your next storage facility, but that's kind of silly with the theme of the game.

    Eventually it'll be multiplayer and this most likely won't be an issue, but for now it's just an idle-click game. :/

  • Yes, they are both conditions. It works for Million through Quadrillion, but not any further. I think it's because C2 starts recognizing the number defined as exponents. The expression like "1e+30", instead of the actual integer "1000000000000000000000000000000".

    But I don't think I can use this method using the "1e+30" type of formula.

  • Actually, I know how

    I set it up as :

    Money > xxxx

    Money < xxxx = System set (Quadrillion) to int(Money/1000000000000000)

    = Set text to "Money is - $" &Quadrillions & "." &int((Money-(Quadrillions*1000000000000000))*0.00000000000001) & " Quadrillion"

    Okay, all is fine and dandy, but when you reach Quintillion (and up) , it's like C2 isn't recognizing the exponent.

    So, at Quadrillion, the game will actually display " XX Quadrillion"

    But at Quintillion it'll just say "$1000000000000000000"

    And if you reach something like Septillion, it'll just show the exponent.... Like "$1e+24"

  • Hey there!

    I've been working on an idle click game that works with a lot of "menus" I have sprites on a main layer that pop open menus in a different layer. Those menus have sprites that have their own actions. Outside the menu I have transparent sprites that trigger the menu to close. My issue is that, when on a menu layer, if you click a sprite with an action, only that action triggers, but if you click on the menu itself (in between the sprite "buttons") or even on the text, and it's overlapping a sprite on the main layer, the sprite on the main layer will trigger it's action.

    So, basically, I'm accidentally clicking on a sprite on the layer under the active layer. I tried laying a sprite the same size as the menu underneath the menu that triggers the same layer to become visible, but the click is still registering to the sprite on the lower layer.

    Is there any way I can stop this from happening? Since the menu that's being clicked through is a sprite, itself, that is only used for aesthetic purposes, can I give it a property (behavior, action, etc.) that will prevent anything that it's overlapping to be safe from accidentally being clicked?

  • Hey, I'm still looking through your capx. As far as your second question, though, scroll down to "Pichu Attacks". You have three actions. Make a fourth action and click "Pichumove", then click "Pin to Object", then pin it to "Pichu", and leave the mode as "Position and angle".

    --EDIT-- Sorry, I meant to say Pin "Pichumove" to "PichuAnimation"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm making a game that'll have options to upgrade, and in turn, earn more money. I thought it'd be easiest to make a sprite for every building, and different animations for each "upgrade". But if someone makes two of the same building, and then upgrades one, both sprites will change to the upgraded animation.

    My game has 36 spots for buildings, and the player can build whatever they want. Is there any way to make it so only the clicked sprite's animation changes?

    If this has been asked before, please forgive me and help me find the post. I, for the life of me, can't find this answer anywhere.

  • Hi!

    I've been working on a game, and I've never used the forum before. I've read nearly every tutorial related to my game and have watched countless YouTube tutorials, but I'm still confused about something.

    I understand the concept of setting up a leaderboard, but how does it update throughout every venue? To better explain, let me give an example. Say there is a game that you can play on a website on the PC, or you can download it through Google Play, or you can download it through the Apple store. If three people are playing on three different platforms, how can the leaderboard be linked through them all? Is it integrated through the hosting website/server?

  • 10 posts