How do I Make my player only go up and down with arrow keys

Get help using Construct 2

Post » Mon Apr 21, 2014 12:08 am

How do I Make my player only go up and down with arrow keys

Example i have a player flying in the air and have objects fly at the player the player has to go up and down on arrow keys
[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 723

Post » Mon Apr 21, 2014 1:19 am

Set Condition

if up arrow key is down then [action] Set (player.y-1)*dt
if down arrow key is down the [action] Set (player.y+1)*dt
Every Game is a Good Game it's just few people like and few does not! Keep coding people some day you will be a "NOTCH".
B
21
S
6
G
3
Posts: 85
Reputation: 4,607

Post » Mon Apr 21, 2014 1:24 am

can u make me a capx please
[img]imageshack.com/a/img19/5018/sqio.png[/img]
Banned User
B
5
S
1
G
1
Posts: 88
Reputation: 723

Post » Mon Apr 21, 2014 10:01 am

Here's the capx!
(After you press one of the buttons, press anywhere inside the screen to move the player.)
You do not have the required permissions to view the files attached to this post.
@StylianosArts
Game studio with a portfolio of 4 Apple Featured games.
B
31
S
7
G
2
Posts: 111
Reputation: 2,422


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests