How do I create a shield?

Get help using Construct 2

Post » Thu Mar 06, 2014 4:48 am

Hello,

I am pretty new to Construct 2 and this is my first post in these forums!
I'm creating a platform game. When I hold down the RMB, I want my player to hold a shield.
So, I tried that by creating an object on mouse holding down, but when my player moves he creates shields all the time.
On release of the button all shields are destroyed.

My questions are:
-How do I create only 1 shield that is attached to the player.
-How do I position the shield according to my player.
-How do I make my shield rotate around my player depending on the mouse angle.

Thank You.
Last edited by Coyowl on Thu Mar 06, 2014 5:30 am, edited 1 time in total.
@coyowl

coyowl.com

Game studio with a portfolio of 3 Apple Featured games.
B
31
S
7
G
2
Posts: 111
Reputation: 2,412

Post » Thu Mar 06, 2014 5:09 am

Try this, there are more advanced ways, but that is one of the simpler

https://dl.dropboxusercontent.com/u/108 ... hield.capx
Using R243 for all examples
B
69
S
20
G
6
Posts: 379
Reputation: 9,699

Post » Thu Mar 06, 2014 5:25 am

Just have a shied there all the time but invisible. When the mouse button is down set the shield to visible (or set a variable and have the shield trigger of that). Only have the shield work to protect the player when it is visible.
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,573

Post » Thu Mar 06, 2014 5:40 am

Thank you all for your quick responses. This really helped a lot!
@coyowl

coyowl.com

Game studio with a portfolio of 3 Apple Featured games.
B
31
S
7
G
2
Posts: 111
Reputation: 2,412


Return to How do I....?

Who is online

Users browsing this forum: el3um4s, TylerJS and 9 guests