Move forward constantly but left and right movemen

Get help using Construct 2

Post » Wed Nov 13, 2013 5:07 am

I have a game (a weird game) where your a sperm and your always moving forward, as in you cant choose speed or go backwards, but you can go left or right to dodge stuff. How could I accomplish this. I already have it set up so that speed starts at 200 and goes down slowly until you stop. I just want to be able to move left and right only. But always stay facing straight. The head of the sperm always needs to be closer to the top of the screen then the tail. Make sense? please help!
B
9
S
1
Posts: 42
Reputation: 622

Post » Wed Nov 13, 2013 11:36 pm

Still no reply? Does anyone have any idea on how to do this?
B
9
S
1
Posts: 42
Reputation: 622

Post » Wed Nov 13, 2013 11:49 pm

Post a link or demo of what you already have set up then it's easier to tell you exactly how to disable the correct movements.
B
47
S
18
G
84
Posts: 2,271
Reputation: 49,796

Post » Thu Nov 14, 2013 1:52 am

8direction-movement-behavior with only left and right movement
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 788
Reputation: 3,788

Post » Fri Nov 22, 2013 1:48 am

What I learned from Tobye:

You can just use 'move at angle'. 180 for left, 0 for right. And always remember to set the amount to move as a multiple of dt! (for example: 'left arrow is down' > 'turret move at angle 180, 260*dt').

Down from the top - 90
Left - 180
Right - 0
Up from the bottom - 270

I think that's correct.

I hope this helps

ALLMarkMade2013-11-22 01:49:14
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
41
S
20
G
6
Posts: 367
Reputation: 7,541

Post » Sat Nov 23, 2013 10:53 am

if you don't wan't your sperm to move at all you can simply say

while left button is touching, set x position of sperm = sperm.x -1

this is not a "proper" solution but maybie it's enough for your needs ..
I used this when i was new to construct.
B
23
S
6
G
5
Posts: 132
Reputation: 4,487


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 11 guests