This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-02-28 23:47:32

rdasilva
New Scratcher
Registered: 2013-02-28
Posts: 1

Troubles with script for bouncing.

Hey everyone,

I'm new to scratch and have been playing around with a bunch of things to try and make some projects work. The project I'm working on, (http://scratch.mit.edu/projects/rdasilva/3140016) , is having trouble with getting my bouncing balls to bounce properly. If looking at the script in the file each bouncing ball has a set of four if statements to determine the direction of bounce based on the original direction of travel. If I insert each if statement into the forever loop separately the desired bounce occurs but when I put all of them in one or more of the statements fails to trigger. Not sure what is going on here and yes my code is probably quite messy i apologize its still in progress. Any help would be appreciated.

Cheers,
rdasilva

Offline

 

#2 2013-03-18 11:14:28

tcodina
Scratcher
Registered: 2011-07-04
Posts: 100+

Re: Troubles with script for bouncing.

It's easier than the code you've putted on the project!!! it should be:

When gf clicked
if on edge, bounce


My big project: Sky Ducks. See it here Sky Ducks: The Game. XMyth needs members!!! Go here: Xmyth collab and join!!!

Offline

 

Board footer