ramones's Forum Posts

  • I'm sure he meant in C2 / the manual. But yeah regular expressions can be used in most programming languages and there are lots of guides out there.

  • Did you check if that's the correct IP address for your computer? (192.168.0.101) If that's right, maybe try a different port number.

  • The basic idea is:

    The random numbers that you get from the random number generator depend on the initial number that is used to seed it. If you start with the same seed then you get the same sequence of "random" numbers every time.

    You take a random number generator that lets you specify a seed. You give it a random seed and then generate your level. Generate a random x position for an object, generate a random y position for an object, generate a random number of enemies, etc. You save the seed for later. When you want to recreate that same level, you just use reseed the random number generator with the stored value and create the level again. Same random numbers = same layout.

    Here's an example using the RandomPlus plugin:

    randomSeedExample.capx

  • There's also the 'regenerate region' action so you don't have to regenerate the whole map.

  • It's used for mouse and keyboard input and resizing the canvas. Probably some other things.

  • The second time you're picking up the first one you spawned.. not the newly created one.

  • In Event 5 you should be loading the value into the high score variable.

  • In the events where you're checking a variable and using wait you probably want to use 'trigger once'.

    For example:

    +System: CowInVent = 1
        -> System: Wait 5 seconds
        -> System: Set AllowJumpscare to 1
    [/code:22y3ktdy]
    As long as CowInVent = 1 then it's queueing up the "Set AllowJumpscare" action to happen after 5 seconds. If CowInVent = 1 for 3 seconds then after 5 seconds AllowJumpscare is going to be set to 1 every tick for the next 3 seconds. Hope that makes sense.
    
    You'd put in a trigger once so the event only runs one time:
    [code:22y3ktdy]
    +System: CowInVent = 1
    +System: Trigger Once
        -> System: Wait 5 seconds
        -> System: Set AllowJumpscare to 1
    [/code:22y3ktdy]
  • safe_area_from_camera_edit.capx (r206)

    I just put another sprite around the box to detect if the player is slightly outside the box.

  • I have it set as a bookmark for easy access. It would be nice if it was on the unread posts page.

  • Set it to 255. It's easy to accidentally set it to zero by clicking on a transparent area with the color picker.

  • Check that the color alpha value isn't set to 0.

  • The "set color" values should be a percentage between 0 and 100, not 0 and 255. Could that be the problem? If you want red = 143 you'd set it to 143/255*100.

  • You could use a dictionary instead of an array for descriptive keys.

    {"c2dictionary":true,"data":{"name":"Sonic","speed":5000,"cost":200}}[/code:x07a2iq4]
    
    [code:x07a2iq4]<?php
        function c2DictionaryAsJSON($data) {
          return json_encode(["c2dictionary" => true, "data" => $data]);
        }
    	
        $data = ["name" => "Sonic", "speed" => 5000, "cost" => 200];
    
        echo c2DictionaryAsJSON($data);
    ?>
    [/code:x07a2iq4]
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Are you picking the correct donkey in the event where you pin the tail? If not maybe you pin the tail to the wrong donkey? Just a guess...