How to make bullet bouncing when hit layout border

Chat about anything not covered in these forums, but keep it civil!

Post » Tue Jan 10, 2017 9:50 am

Hi all,

I appreciate if anybody here can teach me or give me some example.
I want to make player bullet bouncing everytime reach the edge of screen layout, left right top and bottom before the bullet hit the enemy.
except all enemy spawn, enemy still like a normal can begin spawning from layout outside and dissapeare on end of screen.

Thanks.

Image
B
15
S
6
G
3
Posts: 13
Reputation: 2,674

Post » Tue Jan 10, 2017 9:58 am

mayber I should delete this post, just solved this problem.
I set bullet properties > Bounce of solid to Yes.
B
15
S
6
G
3
Posts: 13
Reputation: 2,674

Post » Sat Jan 21, 2017 12:07 pm

Set bullet to bounce but you need a boundary to bounce off of. Create a colored or clear box sprite and make a border out of those and set them to solid. The bullet will bounce off those and you can set them just off screen.
Banned User
B
23
S
6
G
58
Posts: 1,229
Reputation: 34,540


Return to Open Topic

Who is online

Users browsing this forum: No registered users and 2 guests