Spawnin/Direction

b2iscoolb2iscool Member Posts: 135
edited November -1 in Working with GS (Mac)
So I have an actor where it will change size based on where you touch and release but I cant get the direction down I have four atts A Touch x and y and a release x and y and I have the actors left end to be where you touch just need the other end to go towards my release point so basically its drawing a line if anyone could help would be great

peace

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    No idea what you're asking here... The actor gets larger based on where you touch but you need a direction? Like, are you shooting it? Or is it some type of projectile?

    Are you trying to draw a line? Or, are you trying to make the actor move along in a certain direction?
  • b2iscoolb2iscool Member Posts: 135
    Im trying to draw a line and it works perfect for horizontal lines lol so i have the length of the line down but lets say i start to touch at 0,0 and release at 100,100 it will just be at 0,0 and be horizontal so i need the other end of the line to be where i release so i just was wondering what i would put in the direction formula?
  • b2iscoolb2iscool Member Posts: 135
    the only thing about orbz is its like a free style thing with lots of actors and 1st off already gonna have quite a bit going on so this line needs to be as little memory as possible 2nd i want it to be static cause there is gonna be alot going on and want to make it easy to erase but his thing is def awesome i have one line thats width is based on the distance between your touch and release and i have it spawning at the begging of the touch but i need to change the spawn direction so it will be between where you touch and release.

    peace
  • AppsRacKAppsRacK Member Posts: 346
    use trigo or compute the difference in x & y between your touches (first and second) and use that as a spawn point.
Sign In or Register to comment.