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

#1 2008-06-19 13:38:55

Bobby500
Scratcher
Registered: 2008-04-19
Posts: 1000+

Need Pinball help.

Hey, I am makeing a pinball game and could use a couple of answers and alot of help.

1. I need to know how to make the ball bounce off of the sides and roll down loops and stuff without going through them and comeing off at a realistic angle. This is my worst problem.

2. This is probably going to scroll from one screen to the next, vertically. How can I get that to work with the ball still going and stuff? It will just be 2 screens.

3. How do I make it go under stuff sometimes and then go up it when it goes through the entrance?

Hear is the course that I am working on. (Yes, it is Pokemon Pinball.  tongue )

http://news.softpedia.com/images/reviews/large/pokepinrs_002-large.jpg
http://www.gamershell.com/static/screenshots/6696/138314_full.jpg

Offline

 

#2 2008-06-19 13:53:47

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Need Pinball help.

1. A simple way would be to have the ball turn around 180 degrees if it's touching a wall. Or you could have a variable that controls the movement of the ball's X positon, and then just change that when it hits a wall. For a more realistic way using Trig functions see: http://scratch.mit.edu/projects/kevin_and_abe/543772.

2. Use a scrollY variable just as you would use a scrollx for horizontal movement. Set the first screens Y position to scrollY and the second the scrolly + (360 * 1).


I'm not so sure on what you mean for 3.

Offline

 

Board footer