Michal11's Recent Forum Activity

  • Give the fence a solid behavior then on collision with fence set car speed to lerp(player.Car.Speed,50,0.8). You can play around with the numbers, I'm not sure what I'm doing but it seemed to work for me <img src="smileys/smiley17.gif" border="0" align="middle" />

    Thank you but it did not help either :).

    I somehow cannot believe nobody here knows how to do standard car collision with wall :)

  • I uploaded capx to dropbox if anyone would be interested in helping me out :)

    https://dl.dropbox.com/u/97534866/testing.capx

  • Add an event that says when the car collides with a wall set the cars speed to zero.

    Unfortunately this does not help as well :/ It must be something else. As I said most of the time 90% it works. But sometimes when my speed is too high or if I hit the wall and then try to turn my car to the side and collide with wall by car's side it goes through

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well that is exactly what I dont want. Because if you create wall as solid and then car has collision with it it bounce like crazy :)

  • Hello guys,

    I have game where car is driving on the road. Then another sprite is wall and when I hit the wall with car I want the car not beeing able to drive through the wall. I though I got it right but my method sometimes does not work and someties car somehow go through wall.

    Car has variable "way". When way is 0 car is going backwards when way is 1 car is going forward. I did that so I know if car goes backwards or forwards. In conditions I have this:

    <img src="http://img822.imageshack.us/img822/927/wallcolision.jpg" border="0" />

    Most of the time it works. However sometimes car gen go through the wall and I dont know. Do you know what could be the problem?

    The wall is not sprite but tiledbackground.

    Thank you

  • Hello guys,

    where can I find some good 2D graphic artist. Not for free of course. I need some nice sprites to improve my construct 2 skills as much as possible so I was thinking I could find some good 2D graphic artist, give him some money and sey I need about 30 sprites. Car, road etc. I know sites like deviantart etc by is there something better? :)

  • This seems to work, not sure its the best answer.

    btw, I started with a sprite on the screen, that's why it only repeats 19 times.

    Excellent I think this is the best way. Thanks a lot mate

  • if you make the enemies solid then they should be moved outside of each other if they spawn on top of each other. Note I say "should" then if your enemies shouldnt be solid you can turn it off after theyre placed

    I just tried that quickly but it does not work :) They still overlap each other

  • Thank you this is exactly the way I want to do that. Hence I think there must some better way which is the reason I am asking :)

  • Upss I had to reedit post right now. I forgot to add random into that. Now it shoud look same like my original code :) sorry

  • Hello,

    I am generating enemies on my map randomly. Basically on start of layout I have

    system create object x random (10,8000)

                         y random (0,500)

    then I have system repeat 20x times. So this ones creates 20 enemies. the problem is that sometimes it generates same or really similar x or y so two or more sprites are touching each other which is something I want to prevent. Is there something I can do?

    I was thinking something like. If there is collision between them then generate x and y again?

  • Thanks guys. I am starting to love this friendly community :). I hope one day I will be helpful to others as you

Michal11's avatar

Michal11

Member since 4 Aug, 2012

None one is following Michal11 yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies