Peggle Clone?

For questions about using Classic.

Post » Wed Oct 07, 2009 11:06 pm

I just need a head start of sorts. Seeing as there isn't a pinball movement. How would O go about making a peggle clone?
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Wed Oct 07, 2009 11:31 pm

id say the physics behaviour, since peggle has quite complex ball dynamics, and can roll on smooth surfaces ect. you have to set elasticity on the ball to 100 and world gravity to 50
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Wed Oct 07, 2009 11:33 pm

Thing is, there isn't a circular collision for that, yet.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Thu Oct 08, 2009 1:16 am

yes there is, its called ellipse...
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Thu Oct 08, 2009 1:33 am

Yeah. but it doesn't seem to do a good job. It collides more like a ellipse than circular one.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569

Post » Thu Oct 08, 2009 1:50 am

ellipse only means an circle with variable height and width, its what a rectangle is to a square. and a rectangle can be a square, same principle applies here.

as long as your sprites height and width are the same, it will collide as a circle. and i guarantee that you wont get an easier and better working way with anything besides physics
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Thu Oct 08, 2009 1:28 pm

you could also try writing your own circular reflection bounce, I think lucid had an example or something around here. Custom movement should help with the stepping also. I'd say go physics or custom movement+custom bounce code, don't go with the built in bounce, it's not great for realistic circular reflections. Give it a try anyhow.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Thu Oct 08, 2009 4:06 pm

Yeah. It's shame though, I totally forgot how to write a custom bounce.
B
11
S
3
G
8
Posts: 473
Reputation: 4,569


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests