TheWyrm's Recent Forum Activity

  • Hi guys,

    I want to randomly pick one object from a group of objects and spawn it in the level, but I cant seem to find the functionality.

    Basically I want to do something like the following:

    var a = random(0,1)

    if (a=>0&&<0.2) then

    Spawn.(Object1)

    elseif (a=>0.2&&<0.4) then

    Spawn.(Object2)

    elseif (a=>0.4&&<0.6) then

    Spawn.(Object3)

    elseif (a=>0.6&&<0.8) then

    Spawn.(Object4)

    else

    Spawn.(Object5)

    How do I do this?

    Thanks,

    Mat

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi guys,

    I'm new to all this so just figuring things out still. So I'll explain my problem.

    I spawn an instance of object1.

    When object1 is created I spawn an instance of object2 and pin it to object1.

    When an instance of object1 overlaps an instance of object3, object 1 is destroyed and unpins object2.

    Object 2 is a physics object so will fall when unpinned.

    However, all instances of object2 get unpinned and fall.

    How do I just unpin the object2 instance that is pinned to an instance of object1?

TheWyrm's avatar

TheWyrm

Member since 9 May, 2014

None one is following TheWyrm yet!

Connect with TheWyrm

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies