Invisible collidable lines

joey2ejoey2e Member Posts: 99
edited November -1 in Working with GS (Mac)
Hello all

Been stuck for the last few hours

Am attempting to make a game where an object drops from the top of the screen.

The user can make a line appear to intercept the object by swiping his/her finger across the screen which will create a visible and colidable line with the object for say 2 secs at which point the line will disappear.

I want the user to be able to create as many lines as they want.

The line will be able to go any direction the user swipes their finger (vertical, horizontal, diagonal)

Thanks for any help

Comments

  • joey2ejoey2e Member Posts: 99
    joey2e said:
    Hello all

    Been stuck for the last few hours

    Am attempting to make a game where an object drops from the top of the screen.

    The user can make a line appear to intercept the object by swiping his/her finger across the screen which will create a visible and colidable line with the object for say 2 secs at which point the line will disappear.

    I want the user to be able to create as many lines as they want.

    The line will be able to go any direction the user swipes their finger (vertical, horizontal, diagonal)

    Thanks for any help

    ohh yeah forgot to add the object will slide/roll down the line if it is diagonal or not straight :)
  • ORBZORBZ Member Posts: 1,304
    see my drawer demo
  • joey2ejoey2e Member Posts: 99
    Orbz thats almost exactly what I want with the exception of I dont want to ball to bounce around just to drop and to act like its being pulled down by gravity (i.e ball drops and if it lands on the line it will stay there if it is flat or roll if the line is diagonal)

    Also I want the line to disappear after a short predefined time

    Is there any way I could get a look at your project/you could explain to see how you achieved that?
  • joey2ejoey2e Member Posts: 99
    Orbz thats great exactly what I was looking for :)

    lol, I always try looking for the most complex answers when a step back and a simple solution is all thats needed!!
Sign In or Register to comment.