Bounce behavior

Discussion and feedback on Construct 2

Post » Sun Sep 11, 2011 5:45 am

Hi everyone,

I'm new to the forums but have kept an eye on Construct for quite a while and am totally impressed with Construct 2, as I've come over from GameMaker, Flex/Flash and other platforms myself.

Anyway, I was trying to get a good bounce behavior from a ball but can't seem to find a way to do nested conditionals in order to achieve that.

Anyone know a way to do that in Construct 2?

Thanks in advance!

-David
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Sun Sep 11, 2011 8:07 am

Whoops, stupid of me, Figured it out! Instead of using the Is outside layout event I just used the Compare x and Compare y events and manually adjusted the angle!

Solved!

-David
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Mon Sep 12, 2011 8:34 am

As an example to help others seeking a simple method for bouncing a ball of the edge of the screen, I've included the prototype to an upcoming simple game as follows:


Basically, just avoid the other balls (which split into others, ultimately filling up the screen) and survive as long as you can. :)

Cheers,
David
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Mon Sep 12, 2011 8:35 am

I'll have to learn how this forum works, as the link didn't get posted!
http://dl.dropbox.com/u/41325628/all-those-balls-prototype.capx
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Mon Sep 12, 2011 8:36 am

B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Mon Sep 12, 2011 12:28 pm

Haha, fun game! :) And thanks for the capx!
B
14
S
3
G
2
Posts: 37
Reputation: 1,893

Post » Mon Sep 12, 2011 4:10 pm

Yes, thanks for the capx. I've been going over some of the functions for C2 and there doesn't seem to be the basic "bounce" function. No box2D either?
B
18
S
8
G
7
Posts: 120
Reputation: 5,630


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests