gautam's Forum Posts

  • Hi again!

    ***Update***

    Solved the color matching and destroying issue :)

    Just the overlapping thing is still remaining :(

  • Try Construct 3

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

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

    I am facing couple of issues:

    1. I want objects to spawn on a random Y axis between two values, but in case there is already an object present at the point, the new object should not spawn. Tried "if overlapping" destroy "object A" and stuff, but could not do it successfully.

    2. I have a color matching scenario where, if yellow bullet matches a yellow character, both get destroyed... else only the yellow bullet gets destroyed. But, if everyone color bullet destroys Red as well as their respective color.

    Help please!!

  • Hi, I still was not able to get it right... can anyone give me a sample on how to use it? I dont think I am doing it the right way too.

    I have put instance variables (oldx and oldy) to player as well as the enemy. I have set values:

    PlayerBox: On Created -> Set oldx to PlayerBox.X

                          -> Set oldy to PlayerBox.Y

    And the same for enemy too.

    After this I dont know how to compare distances between the two objects. :( The distance says I have to input 4 values, whereas I just need to see if the distance between the two on X axis.

    Please help :)

    Thanks!

  • Hi, I have created an enemy.. got the enemy patrolling using edge markers, but I am unable to figure out how to get the enemy to fire if the player comes within a certain range of the enemy (line of sight kinda)

    The enemy shoots only on the X-axis while facing the Player.

    So, I wanted to know how to make the enemy fire at the player when the player reaches within certain pixels(?) of the enemy.

    Thanks!

  • Thanks! Got it! :)

  • Hello again. I have 2 queries. One of them is really simple, but I am unable to figure it out... the other one is simple too I guess.

    #1: I have set the Layout size to 1280x1024 and have placed Objects. I can see a square inside the layout that shows what will be shown on screen. How can I increase the size of that? I want to increase it to display complete 1280x1024 when I press Play.

    #2: I have four types missiles, four types planes and four types of bullets. If any missile hits any plane, both the missile and the plane gets destroyed. Currently, I have made different events for these.

    Ex:

    Missile01 -> On Collision with Plane01 -> Missile01 Destroy, Plane01 destroy.

    Missile01 -> On Collision with Plane02 -> Missile01 Destroy, Plane02 destroy.

    and so on...

    Is there a way that I can use: if 'any missile' hits 'any planes' both missiles and planes get destroyed? All the missiles and planes are unique objects and not different instances of the same object.

    I am using same long process even for bullets, but with a variation:

    Bullet01-> On Collision with Missile01 -> Bullet01 Destroy, Missile01 destroy.

    Bullet01-> On Collision with Missile02 ->Bullet01 Destroy, Missile02 DOES NOT destroy.

    and so on...

    Is there a shorter way where I can use: If bullet01 collides with missile01, both gets destoryed, else if it hits other missiles, only the bullet gets destroyed, but missiles continue on their path?

    Thanks!

  • podpathos: Thanks! This is exactly what I needed. :)

  • Hey, I am new to Construct, and I am lovin' it! But with new softwares comes new questions :(

    How do I swap positions of two objects once they overlap?

    For ex: I have Object A and Object B. Both the objects have "Drag and Drop" and "Solid" behavior. They are of the same size. What I want to do is, when I drag Object A and place it over Object B, the positions of those two should swap.

    For now, I have:

    Object A -> Drag and Drop is Dragging -> (dunno what action to put here)

    Object A -> Is Overlapping Object 2 -> (dunno what action to put here)

    Any help will be appreciated. :)

    Thanks!