How do I Make something bite

Get help using Construct 2

Post » Thu Mar 05, 2015 7:19 am

like how you bite an apple
B
15
S
4
Posts: 153
Reputation: 1,385

Post » Thu Mar 05, 2015 7:33 am

First idea:
First you need condition that will ensure that object "your mouth" is overlapping object "apple".
Then, if that is true, your apple should change animation frame, from full apple to bitten apple.
Also you can create variable that will keep track which apple is bitten.

Can you provide capx?
B
12
S
6
G
2
Posts: 99
Reputation: 1,727

Post » Thu Mar 05, 2015 7:49 am

Well,I didn't start the game yet I was trying to figure out how I will make it first so i don't have a capx yet,but what I wanted to do is making a mouth bite a pizza in a random part of the pizza and in a random time.please reply back I really need some help.
B
15
S
4
Posts: 153
Reputation: 1,385

Post » Thu Mar 05, 2015 7:58 am

Random part is difficult.
You will need a mask for that, so you will draw bite shape with mask on it to "erase" bitten part of the pizza.
I am not too familiar with masks, maybe this could help:
http://berryijmker.com/how-to-create-a- ... t-2-html5/
B
12
S
6
G
2
Posts: 99
Reputation: 1,727

Post » Thu Mar 05, 2015 8:07 am

Thx so much razormonkey! This link helped so much,but one more thing how or where do I get that bite effect sprite? If you have any ideas tell me.i searched a lot.
B
15
S
4
Posts: 153
Reputation: 1,385

Post » Thu Mar 05, 2015 8:36 am

You can draw it using this as inspiration:
https://www.google.hr/search?q=bite&esp ... bite+shape

:)
B
12
S
6
G
2
Posts: 99
Reputation: 1,727

Post » Thu Mar 05, 2015 8:43 am

Thx so much razormonkey for your help,I will try to draw it,but if you also find something good please let me know.If you need help with anything you can ask me,I know a lot of things about construct 2
B
15
S
4
Posts: 153
Reputation: 1,385


Return to How do I....?

Who is online

Users browsing this forum: chrisinfinger, horzsoap, ling200916 and 9 guests