Cube goes crazy

my problem is every time I start debugging everything works fine except the cube instead of droppping down and hitting the edge it just starts flickering like crazy
Is there a problem in my code?

At first glance there does not appear to be a problem, but I don’t know what the rest of your code looks like.

I compacted ever thing together for a better look.
Could you also explain why there is a problem at the “if” if it’s not too much to ask

There’s no need for the semi-colon on line 25. Which could actually be the cause of your problem (sorry for not catching it sooner, I blame this cold I’m fighting off)

omg thank you :smiley:
Hope you get well soon

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.