mahe's Recent Forum Activity

  • Really thanks Asmodean for the help, Here is a link to a capx that illustrates how to pick seperately two instances that are in collision done with your help :

    https://www.dropbox.com/s/rg7bpuodhq6e1 ... .capx?dl=0

    It's the same way to select instances with collision and overlapping, so I thought it was more interesting for me to put an example based on collision and physics for people to see how it works.

    in this capx, 2 sprites have physics gravity on it, when there is a collision, one sprite will jump and the other one will see its width increase, download the project with the link you will understand, if questions post it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello here is my problem :

    I have 10 instances of the same sprite,

    I want that when one instance is overlapping another instance, one of the two instances stop its movement.

    But when I put the condition : when sprite is overlapping sprite -> stop the movement

    The problem is that the two instances stop their movement whereas I want only one of the 2 to stop its movement.

    So is there a way to get the UID of the two Overlapping objects and to do action separately with the two object ?

    Thanks for the answers

  • Super, Thanks !

  • Note : you can move the red sprite with the arrow keys

  • here is the link to access the construct2 (capx) file I was talking about :

    https://www.dropbox.com/s/vrqcehkejm5ix ... .capx?dl=0

    Please tell me if you can't access it, hope it will help you

  • Super, I will post the link soon, thank you Saad Swad

  • Thank you Saad Swad for the help, I succeeded what I wanted to do thanks to you.

    I did as you asked and add some stuff for fun :

    Event : when character on collision with purple sprite =>Action : set opacity of purple sprite to 50, set "Collision" (instance variable of purple sprite) to 1.

    Event : Every 1.0 seconds,"Collision"(instance variable of purple sprite)=1, Pick a random purple sprite instance => Action : Apply Physics Force (0,500) at image point 0.

    Is there a way to join the project capx or images in the Forum, then this could help more other people ?

  • Hello, here is my problem,

    I have a couple of purple sprite in my level

    When I touch one of those purple sprite with my character their opacity become 50 (On collision-> set opacity to 50)

    I would like to know how I could select randomly a purple sprite among those I have already touched

    I know the event "Pick nth instance" but It pick a precise IID instance

    I know also know the event "Pick random instance" but it allow me to pick one purple sprite among all instances, and I want to pick one among the purple sprites that I have already touched -> Is there a simple way to do that ?

mahe's avatar

mahe

Member since 27 May, 2015

None one is following mahe yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies