thanx. Now that i lernt the easy way on newgrounds, ill soon post up a much simpler code using 2 variables. Its basicly a simple change X by Xspeed and y with yspeed (x/yspeed being variables) and when it bounces on the side of something it sets Yspeed to Yspeed*-1, and same with y off a verticle surface.
no... it will turn 90 degrees, which will be completly useless. Think of where its pointing at when its at 90, and think where its pointing at when its at 180/0
Download to learn how to make it. I will be posting a better project soon to show how, without colour scensors, or multiple scencing blocks to do the same thing for obsticals
Comments
You need to be logged in to post comments
Add a Comment
i want to prepare a maths project on addition with carry over
and if you go to the corner while in the glich the cat goes away
lol i know this dosen't really matter but you can glich and make the cat go outside the square
Sweet! Good job :)
thanx. Now that i lernt the easy way on newgrounds, ill soon post up a much simpler code using 2 variables. Its basicly a simple change X by Xspeed and y with yspeed (x/yspeed being variables) and when it bounces on the side of something it sets Yspeed to Yspeed*-1, and same with y off a verticle surface.
forever if touching edge turn 90 degrees wait 1 secs This does work
no... it will turn 90 degrees, which will be completly useless. Think of where its pointing at when its at 90, and think where its pointing at when its at 180/0
(view all replies)Isn't it just if touching edge turn 180 degrees?
nope, wont work...
(view all replies)