for the direction and velocity... use this loop...rest would be depending upon your directions.
forever (if touching sprite 1)
{
points 2wrds sprite1
turn to 180 degrees
set x-vel to ("y-vel"+ "d" * sin of direction // put a suitable number instead of "d"
set yb-vel to ("y-vel"+ "d" * cos of direction // put a suitable number instead of "d"
repeat until (not touching sprite1)
{ move 10steps}
}
repeat the same for sprite 2 as well...
use your own variables.
cheers!
Offline
thanks buddy...
but I really cant understand the script you share.. I would be thankful if you send the demo file.
here is e-mail adress:[e-mail removed by moderator. Please don't share or encourage others to share contact information. See the Community Guidelines for more information]]
Last edited by cheddargirl (2013-03-03 04:54:22)
Offline