rounded walls to keep ball actor inside screen

hi all
I'm trying to workout how to make walls around my screen that are curved like the top corners of say a pinball machine, I've tried adding blocks at angles but its just messy and when the ball hits it just not right,
would i have to make a curved wall shape in photoshop and import it ?
thanks
insaneye
I'm trying to workout how to make walls around my screen that are curved like the top corners of say a pinball machine, I've tried adding blocks at angles but its just messy and when the ball hits it just not right,
would i have to make a curved wall shape in photoshop and import it ?
thanks
insaneye
Best Answer
-
UtopianGames Posts: 5,692
Answers
Im thinking of creating the corner walls in photoshop, (only prob is I'm useless at photoshop at the moment but slowly figuring it out...) then set it to alpha 0, not moveable, restitution 1, and place them at the boundary walls of the game making it look like the ball bounces of the wall in the background i am using, i was hoping that there was a way of creating a curved line with GS just like you can with a straight wall/floor actor
insaneye
yes I've just reset various small walls into angles to create the corners and it seems to work fine this time i must have been doing something wrong earlier....
great tip on the ''change attribute self.color.alpha to zero'' so i can see where I'm placing them whist building
great forum thanks
those small invisible actors take so little bytes and work beautifully
and you do not need walls around the scene to keep the ball in the scene:
demo: http://www.mediafire.com/?kjamvsy3diubq4k