Bl4ckSh33p's Forum Posts

  • Hi! I was wondering if you can access the projects "Version" number to show it in a textobject without having to add a new (global) variable containing it. I tried to find it in the dropdownlist you get when you write something in the expression editor but could not find it.

    regards

    Bl4ckSh33p

  • I tried it with "normal" bouncing on contact and it seems to work fine from the left side. But if you go around and hit the wall from the right something strange happens. The sprite does not bounce off and is stuck at the wall. o.O

    Example: dl.dropboxusercontent.com/u/26714455/CarBullet_Bounce2.capx

  • I found another example in the forums where someone used this method and it worked for him. But I did not try it with several boundary sprites yet because it was easier to just draw the outlines in one sprite.

    I will try if the swirly behavior is gone when I use separate sprites for each "wall" of the level and collision without overlapping.

  • Right, but it seems to work in many cases. Only sometimes when Car+Bullet are combined on one sprite it gets "stuck" and swirls around. But other times it works like I want it and bounces back with the proper angle and speed. I will try to copy all elements in a new project to post a .capx.

    /Update: Here is an example.

    dl.dropboxusercontent.com/u/26714455/CarBullet_Bounce.capx

  • Hello! I tried a few things with car and/or bullet behaviors but could not get it right, yet. Maybe some experienced users know how to fix it?

    I have a player sprite (car) inside another big sprite which acts as boundary for the level. After a few experiments with settings and how to do it I managed to let it bounce off the wall with the bullet behavior and actions. But sometimes the player sprite gets stuck at the wall and is spinning around the whole time.

    Here is the code for it so far:

    <img src="http://img5.fotos-hochladen.net/uploads/bounceprobd16yz74vb3.jpg" border="0" />

    Does anyone know how to fix this?

    And is it possible to export a single layout instead of the whole project to post an example?

    ps: when I let the sprite bounce off with bullet behavior and speed 0 I get an error popup in chrome:

    <img src="http://img5.fotos-hochladen.net/uploads/bounceerror0spq8c7huv6r9.jpg" border="0" />

  • Ok, I will try to add it to "on start" of the layout.

    Thanks for pointing that out.

  • Hi! I searched the forums for a while and found the clay.io plugin has payment options and CocoonJS supports Playstore and iTunes (but you need a 99$/year Apple Dev Account to make this work?) so far.

    But are there any other alternatives available?

    And is it possible to use CocoonJS together with Clay.io (so you dont need an iTunes/Google Dev account) or does Cocoon only support the default C2 actions minus the ones listed in the manual?

  • Hi! I could not test it yet but the clay.io plugin has support for in-app payments (http://www.scirra.com/forum/plugin-clayio-leaderboards-achievements_topic54357.html). For CocoonJS it seems you need an Google Dev Account or an iTunes Dev Account (99$/year?).

  • Regarding Scaling I just found something in the example "Fullscreen - scaling to window size". It uses "Scale" as scale setting which is not in the dropdown list, only Scale inner/outer are listed there. And I cant seem to enter text in the field.

    I changed "Unbounded scrolling" which seems to fix the aligment, its centered now (but still having this black bar I didnt have before). :)

    But is there no way to automatically use landscape/fullscreen mode on Safari on iPod/iPhone?

    /UPDATE:

    I changed the code a bit because the music was playing everytime I touched the display despite using "do once" (object was only invisible not removed). I changed it to "Destroy" and it does not play multiple times anymore but it is still not playing after the first touch. I have to touch the display a second time and then it plays (but the object starting the music is already destroyed).

    <img src="http://img5.fotos-hochladen.net/uploads/audioprob8ulqvy3ht6.jpg" border="0" />

    <font size="4">Or is there no way to do this in Safari and I have to use CocoonJS?</font>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi! The manual says you need a manual input before sound is played so I created a "Touch to begin" overlay above my title screen. But I have to touch the display of my iPod twice to make the music play. <img src="smileys/smiley5.gif" border="0" align="middle" />

    I have the following events (added trigger once but does not seem to change anything):

    Touch: Is touching [T]Launch

    > System Trigger once:     Audio Play Title looping

                  ?[T]Launch Set Invisible

                  ?TiledBG Set Invisible (black overlay hiding the title screen)

    The overlay (text and black tiledbg) disappears on first touch but sound only starts after a second touch. Does anyone know why or how to fix this?

    And I tried to add a Request Browser Fullscreen Centered and Scale Outer as well and set project options to "Landscape" but it does not seem to do anything on Safari on iOS 6 (7 not working on my iPod 4th Gen.). After the first tests it was filling the screen properly even without the fullscreen request working (as far as I can tell) but now it has an empty bar on the bottom. I did not change the size of the canvas and don't know where it comes from. <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Hi. I hope its ok to post in this old topic. I have a problem with centering and scaling as well. I tried different options from the "Supporting multiple screen sizes" tutorial and it seems Scale Outer works best for me (want to publish it to iphone/android/desktop) but it seems to be aligned to the left side and not centered in full screen mode. Is centering only possible with letterbox mode?

    When I add RequestFullscreen on Start of Layout and set it to "Center" it does not seem to do anything and it is still aligned left with a black bar on the right side.

  • I love the simple actions like in Kudo or Project Spark (When X > Do Y) so I got Construct 2 on Steam. It was 50% off for just about 50� instead of 100 for a short time. Maybe there will be another offer like that in the future to save some money if 100 is too much for you at once/right now. (it was for me ;))

    But it has all features of the "big" busines version so just get the Personal and as said above if you make a great game and get many $$$ you can buy the other licens for about 350.

  • Good to know I am not the only one with this problem.

    But it seems to happen less often if you close all projects first.

  • Hi. I have a solution for my problem now. :)

    foreach ($user_array as $nr => $inhalt) { 
            // Compare current item to the posted information 
            if($user == $inhalt["User"] AND $serial == $inhalt["Serial"]) { 
                // The current user matched, return info and exit 
                echo md5($user).md5($serial).'::'.$installed; 
                exit; 
            }  
    }
  • Hi! I only know a few basic things about PHP and tried to get this to work for hours but it just does not work.

    So I want to ask if someone here might be experienced with PHP. If you know it this should only take a minute or two for you to figure out. :)

    I have a nested array. Its just a list like this

    array[0]["Name"]="Alex";

    array[0]["Serial"]="12345";

    array[0]["NIC"]="1dA21n";

    array[1]["Name"]="Roland";

    array[1]["Serial"]="1337";

    array[1]["NIC"]="uR0ck";

    and so on...

    and I want to compare the entered value submitted with HTTPPost to all array entries with a foreach loop. But I can't figure out how to write this loop properly. <img src="smileys/smiley18.gif" border="0" align="middle" />

    The original code:

    <?

    // Check for post data

    if ($_POST)

    {

        // Initialize user array in format "Username"=>"Serial"

        $user_array = array(

            "John Doe"=>"abc-def-ghi",

            "Jane Smith"=>"123-456-789"

        );

        // Get info from post variables

        $user = $_POST['user'];

        $serial = $_POST['serial'];

        $installed = $_POST['installed'];

        // Step through the user array

        foreach($user_array as $username=>$serialnumber)

        {

            // Compare current item to the posted information

            if(($user==$username) AND ($serial==$serialnumber))

            {

                // The current user matched, return info and exit

                echo md5($user).md5($serial).'::'.$installed;

                exit;

            }

        }

        // If this script makes it this far, nothing matched, return error code

        echo -1;

    }

    else

    {

        // no post data was sent, return error code

        echo -1;

    }

    ?>

    I changed the array and added another POST variable.

    I tried several things from the php manual and php tutorial sites like:

    foreach ($user_array as $type => $properties) {

    // $properties = $GodArray[$type]

    foreach ($properties as $property => $value) {

        // $value = $GodArray[$type][$property]

        //echo $property, "=", $value, "<br />";

                 if(($user==$username) AND ($serial==$serialnumber) AND ($nic==$nicid)

            {

                 //The current user matched, return info and exit

                echo md5($user).md5($serial).md5($nic).'::'.$installed;

                exit;

            }

         

    }

    }

    or:

    /*

    foreach ($user_array as $nr => $inhalt)

    {

        $username[$nr] = ( $inhalt['User'] );

        $serialnumber[$nr]   = ( $inhalt['Serial'] );

        $nicid[$nr] = ( $inhalt['NIC'] );

         echo $username.$serialnumber.$nicid;

    }

    */

         

    or:

        // Step through the user array

        //foreach($user_array as ($username, $serialnumber, $nicid))

         

         //foreach ($user_array as $v1) {

        //foreach ($v1 as $v2) {

        //    if(($user==$username) AND ($serial==$serialnumber) AND ($nic==$nicid)

        //    {

                // The current user matched, return info and exit

        //        echo md5($user).md5($serial).md5($nic).'::'.$installed;

        //        exit;

        //    }   

        //}

    //}

        //{

            // Compare current item to the posted information

            //if(($user==$username) AND ($serial==$serialnumber) AND ($nic==$nicid)

            //{

                // The current user matched, return info and exit

            //    echo md5($user).md5($serial).md5($nic).'::'.$installed;

            //    exit;

            //}

        //}

    But it puts out everything in one line (all data from every array entry) or I get an syntax error with missing , ( or {.

    Does anyone know how to do this? Any help would be very much appreciated.