Page 1 of 1

object collision

Posted: Tue Feb 11, 2014 4:36 pm
by totalnoob
Hi guys im making little fake app of Fluffy bird :D :D :D for fun but if bird touch the pipe it doesnt do anything my code

Code: Select all

 if intersect( button "Box" , image "pipe1" ) then
                answer "You Are DEAD"
             end if
and for moving

Code: Select all

 set the left of the image "pipe1" to the left of the image "pipe1" - 4
   if the right of the image "pipe1" < 0 then
                              set the left of the image "pipe1" to the right of the card "level1"
Thanks

Re: object collision

Posted: Tue Feb 11, 2014 4:43 pm
by Klaus
Where and how do you use that "collision" code?

Re: object collision

Posted: Tue Feb 11, 2014 4:54 pm
by totalnoob
oh god im stupid thanks :D
one more question if i can how can i add score when object go over another object ?

Re: object collision

Posted: Tue Feb 11, 2014 9:17 pm
by Simon
Klaus,
Should I sell my Cisco stocks today or wait till the end of the week?

Tnoob,
Since you have collision working with the pipes, make a pipe between the pipes with blendLevel set to 99.

Simon

Re: object collision

Posted: Wed Feb 12, 2014 9:54 am
by totalnoob
thanks and its there possible way to add pipes objects over time or by score ? you know increasing difficulty thanks

Re: object collision

Posted: Wed Feb 12, 2014 12:28 pm
by Klaus
Hi Simon,
Simon wrote:Klaus,
Should I sell my Cisco stocks today or wait till the end of the week?
definitively YES! :D


Best

Klaus