worm1's Recent Forum Activity

  • Hi,

    I move a sprite using an array of coordinates

    [766,72,765.8,72,765.6,72,765.4,72,765.2,72,765,72,764.8,72,764.6,72,764.4,72,764.2,72,764,72,763.8,72,763.6,72,763.4,72,763.2,72,763,72,762.8,72,762.6][/code:1vknpr0g]I try to use 
    
    [code:1vknpr0g]
    
    System every tick -> sprite Set to X int(Array.At(n))
                                       sprite Set to Y int(Array.At(n+1))
                                      system Set n to +2
    [/code:1vknpr0g]
    
    It s to slow to browse the array so i need other method but i don t know how do that 
    
    Thx for helps
  • Sorry i found the problem, my copied objects were not on the same layer

  • Hi ,

    I try to apply an action for all instances of a same object , i have copy and paste objects on the layer from the original...

    I use

    System - For each Object - Do action
    [/code:3k9yg3c6]
    
    The problem is that only the original object do the action not the others ;( 
    
    Any suggestions ?
    
    Ty for help
  • Televangelist yes you can use this plug-in to make a zelda

  • Hi ,

    Finally I was able to solve the problem using your method dop2000 thank you

    I detect the number of vectors during the overlapping of the ball and if the number of vectors is> 1 then I add just 180 degrees to the angle of the ball

    Ty again for help!

  • Not exactly dop2000

    It' s when the ball touches the side of the vector as in the example that the angle should be 135 and not 35. I think it may be necessary to do another collision management to use the vectors as they are...

  • Thx dop2000 for all these solutions, finally I will need to choose a vector in particular because the problem is not the overlap of two vectors but the fact that when the ball touches a side of the vector the collision angle is totally false. I do not know how I'm going to manage this ...

  • Thx for replies.

    I would like to choose either one does not matter.

    dop2000 i don't understand your sub-event . I specify my vectors are just sprites in the form of rectangular bars that I associate to make polygons

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I developed my own engine to handle the bounce of a ball on walls using vectors but I have a problem with the collision detection function of construct2 is overlapping.

    When my ball touches two vectors at the same time (the corners of a rectangle of vectors for example) my engine receives two vectors and it sucks shit.

    Is there a way to tell the is overlapping function to choose only one of the vectors?

    Ty !

  • Thx for the plugin !

    Can we use it to manage collisions of a moving object to calculate bounce off ? thx

  • tunepunk do you still have the example file because the link is dead and i have exactly the same problem of you, i want handle rebounds in a isometric view . TY !

  • ultrafop I can t open your cap, version 247 and i have version 244 me

    Yes BadMario, i managed it like that and it works very well !

    Now I want to go further and I noticed that if I change the angle of my boxs the rebound is no longer realistic.

    I read that to manage this you have to go through vectors to calculate the angle of reflection. So it's not easy at all anyway ^^

    After several searches I found on the forum this plug in :

    I think it s the best solution to handle the collision on any object with a random angle but i dont know how to use it with a moving object ...

worm1's avatar

worm1

Member since 29 Oct, 2012

None one is following worm1 yet!

Trophy Case

  • 12-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies