Pages: 1
Topic closed
My project needs to rebound like this:
On a right wall, It bounces down-left if direction is 45, up-left if direction is 135.
On a left wall, It bounces down-right if direction is -45, up-right if direction is -135.
I really need help. Please?
when gf clicked think [scripts] for (3) secs please help for (1) minutes say your post here!
Last edited by lennon565 (2012-05-09 01:38:48)
Offline
somthing like this would work, make four or more sensors for each side of lazor. for the top one or whatever
when gf clicked if <touching wall> point in direction __ move __ stepsshould work, sorry if you dont understand. it might have to be move -_ steps, please be a bit more descriptive with your posts
Offline
use 2 sprites, left and right wall
have this script:
when gf clicked forever if <touching [laser]?> if ([direction v] of [laser]) = (45) broadcast [downleft v] end if ([direction v] of [laser]) = (135) broadcast [upleft v] end end when gf clicked forever if <touching [laser]?> if ([direction v] of [laser]) = (-45) broadcast [downright v] end if ([direction v] of [laser]) = (-135) broadcast [upright v] end endmake the laser react accordingly
Offline
zammer990 wrote:
use 2 sprites, left and right wall
have this script:when gf clicked forever if <touching [laser]?> if <([direction v] of [laser]) = (45)> broadcast [downleft v] end if <([direction v] of [laser]) = (135)> broadcast [upleft v] end end when gf clicked forever if <touching [laser]?> if <([direction v] of [laser]) = (-45)> broadcast [downright v] end if <([direction v] of [laser]) = (-135)> broadcast [upright v] end endmake the laser react accordingly
Fixed.
Offline
FINGIN wrote:
somthing like this would work, make four or more sensors for each side of lazor. for the top one or whatever
when gf clicked if <touching wall> point in direction __ move __ stepsshould work, sorry if you dont understand. it might have to be move -_ steps, please be a bit more descriptive with your posts
um, is that the troll face?
if <(troll)=[positive]> detroll website end
Offline
laser314 wrote:
zammer990 wrote:
use 2 sprites, left and right wall
have this script:when gf clicked forever if <touching [laser v]?> if <([direction v] of [laser v]) = (45)> broadcast [downleft v] end if <([direction v] of [laser v]) = (135)> broadcast [upleft v] end end when gf clicked forever if <touching [laser v]?> if <([direction v] of [laser v]) = (-45)> broadcast [downright v] end if <([direction v] of [laser v]) = (-135)> broadcast [upright v] end endmake the laser react accordinglyFixed.
Fixed
Offline
Topic closed
Pages: 1