Is this possible?

lloydowenlloydowen Member Posts: 78
edited November -1 in Working with GS (Mac)
Basically its quite simple. What i want to happen is when an actor collides with another, draw a line connecting the two ? or is that simple but impossible ? Thanks!

Comments

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    There's a bunch of ways to do this, I think you need to be more specific though. If you just want an animated line and each actor is always on their respective sides, just say:

    When actor 1 collides with actor 2
    spawn line on the X position (negative or plus depending on what side actor 1 is on)
  • wroachbarrettewroachbarrette Member Posts: 101
    it is possible but you need to understand first how to draw a line with your finger on a touch screen theres a demo for that just search a drawing demo or something like that ive looked at the code before not that hard, but next you need to be able to change an actors position based on the x and y position of the line youve drawn or the individual actors that make up that line after that it should be smooth sailing
  • lloydowenlloydowen Member Posts: 78
    Sorry guys, ill be more specific, basically, when the actor collides with another, they will have gravity, so i want the game *automatically* to draw a line connecting them... Is that possible? i am already familiar with drawing one with touch...
Sign In or Register to comment.