2D Platforming shooter (Megaman Style)

Get help using Construct 2

Post » Fri May 17, 2013 6:42 am

Hi,

I'm new to Construct2, but I've already gone through a few tutorials. But I haven't seen one that explains how to do shooting without the mouse. I want the player to be able to shoot standing up and crouching, if possible. How would I do this?
B
3
Posts: 5
Reputation: 185

Post » Fri May 17, 2013 6:55 am

shooting without the mouse is the same as shooting with the mouse, you just change the event from mouse click to keyboard input (on key down event)

the code for shooting standing up and crouching is the same, because basically you just create a new object from an image point, just make the same image point index from the two sprites (standing and crouching)
B
40
S
12
G
2
Posts: 167
Reputation: 5,061

Post » Fri May 17, 2013 7:04 am

What would be the events for shooting one time?

I don't know how to do that yet.
B
3
Posts: 5
Reputation: 185

Post » Fri May 17, 2013 7:34 am

On key press (whatever key you want) > shoot

Or if you want to control the number of shots you can create a variable that gets incremented each time you shoot and then reset it and only allow shooting when the variable is at 0. So on shoot, set the variable to 1. Then after a certain number of seconds, or some other event, set it back to 0 which allows you to shoot again.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Fri May 17, 2013 8:20 pm

What would the Shoot event be under? System, or?
B
3
Posts: 5
Reputation: 185

Post » Thu May 30, 2013 4:07 pm

shoot event isn't provided in construct 2, it's a game logic that you need to implement yourself.
how? like bluePhaze said, one example is on key press
B
40
S
12
G
2
Posts: 167
Reputation: 5,061


Return to How do I....?

Who is online

Users browsing this forum: randomly, Walessio and 23 guests