How do I 2 pressed arrow keys to appear objects inx position

Get help using Construct 2

Post » Fri Sep 22, 2017 7:04 pm

Hey! What I want to do is when you hold down a key the scope get in position ( I already did that) and when is released desappears, also how can I do when I have 2 keys pressed like down key and left to shoot de enemy in position 5 for example? I can do up, down, lef and right but I don't know how to do the others, I don't know if I explained myself.

Image

Here is an example of what I'm looking for:
https://www.youtube.com/watch?v=NM11yEwLqKs

thank you!
B
38
S
12
G
3
Posts: 37
Reputation: 4,642

Post » Fri Sep 22, 2017 7:34 pm

Hey @Kermad!

Check this capx and see if that's what you need...

https://www.dropbox.com/s/3gy63dhga1k1q ... .capx?dl=0

Great game, by the way. I love Sunset Riders!

Cheers!
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
22
S
6
G
3
Posts: 722
Reputation: 4,026

Post » Fri Sep 22, 2017 7:50 pm

Hi! @brunopalermo that's exaclty what I was looking for! thank you so much! I'm still noob in this matter hehe.

Yeah sunset riders is great! Right now I'm doing as a practice and learning replicate the game, or parts of it.
B
38
S
12
G
3
Posts: 37
Reputation: 4,642

Post » Fri Sep 22, 2017 8:04 pm

@brunopalermo

What about if the up/left position or down/left position for example are not in the same X an Y as left position?
B
38
S
12
G
3
Posts: 37
Reputation: 4,642

Post » Fri Sep 22, 2017 8:21 pm

For example. I got 8 spawn points in diferent positions, I want the scope change his position with the arrowskey command. the X and Y of every scope position are different.

Image
B
38
S
12
G
3
Posts: 37
Reputation: 4,642

Post » Mon Sep 25, 2017 12:19 pm

Hey @Kermad!

You can use an array to store X and Y and just set the array coordinates when the keys are pressed.

Check this capx: https://www.dropbox.com/s/s0uculd5kgqmc ... .capx?dl=0

Cheers.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
22
S
6
G
3
Posts: 722
Reputation: 4,026

Post » Mon Sep 25, 2017 12:51 pm

Good Morning.
Interesting work, can be used for some keyboard tests too ...
Huemerson
B
27
S
18
G
22
Posts: 116
Reputation: 19,944

Post » Mon Sep 25, 2017 4:23 pm

Thank so much you for your help! I really appreciate it

I found this solution and it worked!
Image
B
38
S
12
G
3
Posts: 37
Reputation: 4,642


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests