How do I create others control to use in "Simulate Control"

Get help using Construct 2

Post » Sun Apr 19, 2015 6:42 pm

I'm creating a game but my character has more than 3 actions ( I'm using "Simulate Control"), how can i add more controls?
B
2
Posts: 3
Reputation: 156

Post » Sun Apr 19, 2015 6:44 pm

You should provide some more information.

1 - which behaviour are you using
2 - which actions would you like to be performed and under what conditions
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Apr 20, 2015 12:35 pm

I'm using plataform behavior, i want to add more actions like shoot, reload.
B
2
Posts: 3
Reputation: 156

Post » Mon Apr 20, 2015 12:47 pm

Ok.. when should the shooting happen and when the reloading?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Apr 20, 2015 1:02 pm

Look, i want to add more controls to the action "Simulate Control", because there are just 3, can i do it?

Reload was just one example, the character can shoot, but there are no more controls in "Simulate Control"!!
B
2
Posts: 3
Reputation: 156

Post » Mon Apr 20, 2015 1:10 pm

I was trying to explain that simulating the controls you are talking about means knowing when the actions you want performed should take place..

There are no more controls (for movement) than the ones presented.

to perform shooting you have to create bullets, set their direction and speed..

For a player to shoot you would create the event:

on space-bar pressed
> player spawn bullet
> bullet set direction

a none player can't push the spacebar, so you have to create an event in which you specify when to shoot..

for example:

system compare two vaues : player.x < enemy.x
system trigger once
> enemy spawn bullet
> bullet set angle towards player
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Mogador, NN81, sublimate and 9 guests