Help making objects move away from player when colliding
andreaslolsen
Member Posts: 5
Hi im pretty new on gamesalad and im trying to make a game where a player i chasing/pushing monsters in to a car. When player and monster collide i want the monster to move in the oppisite ange that he hit the player with.
The player and monster have circle hitboxes, so when they hit eachother i want the monsters to run in the opisite direction as the angle it hit the player with.
Plzz Help
Comments
Hmm. Not sure I understand but here is a try. Opposite to angle that is hit.
Heres a demo.......
https://www.dropbox.com/s/cozny1zx4muknue/opposite angle its hit.zip?dl=0
Hi super it works just what i was looking for, now im wondering how to stop the motion of the moster hit. i tried putting a timer on but it dosent work.
So the monster is hit it moves and now you want it to stop? Stop after a certain distance or time?
You could put a timer then change velocity to zero???
Maybe this????https://www.dropbox.com/s/ot27awboe08dfpe/opposite angle its hit then stop.zip?dl=0
When collide change drag to X
With Drag.
https://www.dropbox.com/s/dtammp6ghn41a1u/opposite angle its hit then stop with drag.zip?dl=0
Hmmm yes that seems to work. Honestly I've never played with "drag" before.
Kind of like friction attribute but not having to touch something I would guess.
Give it a go, you might like it.
.
.
.
.
.
.
@Socks
Yeah I knew I was in trouble with that one. I should take that off my Facebook page.
It's all about getting the right moustache colour.