LordViperion's Recent Forum Activity

  • And if the objects are not in the family ?

    This piece of code I want to achieve :

    using UnityEngine;
    using System.Collections;
    
    // Applies an explosion force to all nearby rigidbodies
    public class ExampleClass : MonoBehaviour {
        public float radius = 5.0F;
        public float power = 10.0F;
        
        // initializations or run code once.
        void Start() {
            Vector3 explosionPos = transform.position;
            Collider[] colliders = Physics.OverlapSphere(explosionPos, radius);
            foreach (Collider hit in colliders) {
                Rigidbody rb = hit.GetComponent<Rigidbody>();
                
                if (rb != null)
                    rb.AddExplosionForce(power, explosionPos, radius, 3.0F);
                
            }
        }
    }[/code:3jsjzfx9]
  • Do you understand what I want ?

    I want whatever it will be an array that are within a circle of radius x objects .

  • One x beam inside a circle can be found all to put an object into a array,how?

    Let the strength of the explosion have an effect on the objects x beam inside a circle.

    It x beam I want to store the reference of objects which can be found inside a circle away into a array in order to be allowed to estimate their direction with his separate one next. That direction where they have to fly away due to the strength what the explosion creates.

  • Very hard.

  • Welcome all. Construct2 the best!

    My problem:

    I cannot imagine how there could be a noughts and crosses to make a game the construct2 with a program.

    Help to understand his logic for me.

  • Please help me understand.

  • From among the two examples why the second is out of order?

    ------------------------------------------------------------------------------------------------------------------------------

    This works:

    // If a monster is within 200 pixels of the player, make it start rotating towards them.

    System | For each Monster | Monster | Rotate 1 degres toward (player.x, player.y)

    System | distance(Player.X, Player.Y, Monster.X, Monster.Y) < 200 |

    --------------------------------------------------------------------------------------------------------------------------------

    Not Works why?:

    System | Every tick | Monster | Rotate 1 degres toward (player.x, player.y)

    System | distance(Player.X, Player.Y, Monster.X, Monster.Y) < 200 |

    If the every tick recurs with true one always,why the monster does not want to turn then if I am near to it than 200 pixels?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When it is necessary to be useful at one more event sheets?

    How it is necessary to be useful correctly the event sheets?

  • Where can l find a list of the construct2d effects?

    Reportedly more than 70 pieces of effects in it.

    I would like to know the name of these effects are.

LordViperion's avatar

LordViperion

Member since 30 Mar, 2015

None one is following LordViperion yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies