help with dragging out rods [Unresolved]

AsymptoteellAsymptoteell Member Posts: 1,362
edited November -1 in Working with GS (Mac)
I've posted this topic in another form, but I fear I'm completely off.

I'm trying to make a game where (as part of it) when you press the mouse, a rod actor is spawned and when you drag your mouse, the rod grows and one end follows the mouse while the other end remains stationary. I'm having some serious trouble with this, but maybe someone can help. Right now it works if I only drag up, but otherwise it grows but doesn't move quite correctly. I will put screenshots of the rules next.

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Spawner:
    image

    Spawnee Part 1:
    image

    Spawnee Part 2:
    image
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Don't think this worked. Let me try again.

    <table style="width:194px;"><tr><td align="center" style="height:194px;background:url(http://picasaweb.google.com/s/c/transparent_album_background.gif) no-repeat left">image</td></tr><tr><td style="text-align:center;font-family:arial,sans-serif;font-size:11px">rules</td></tr></table>
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Close enough.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    In the first image you have constrain self.height to two different things. That doesn't seem like a good idea.
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Got rid of it. But it's not that I don't know why it isn't working. I just need a way to make an attribute to replace position y that will be the height relative to the angle. E.g. If it's straight up and down, it will be y height. If it's side to side it will be x height. If it's in between it will be in between. Any idea how to do that?
Sign In or Register to comment.