How do I force object to move only left-right

Just started using Construct 2? Post your questions here

Post » Wed Mar 02, 2016 3:23 pm

I never learn english, so i hope you understand me.

How to force object to move only left-right without other direction. I made it to move object from left to right part of my "game" but he won't from that position move in direction from right to left. I mention that is in question enemy object, so he need to do that without any player impulse.

And why you make so hardly this manual making movement funkcion??? 

(Sorry for bad english)
B
3
Posts: 6
Reputation: 187

Post » Wed Mar 02, 2016 6:49 pm

Give the object eight direction movement behavior, and set the range of movement to only left and right.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
52
S
24
G
30
Posts: 537
Reputation: 19,651

Post » Wed Mar 02, 2016 9:48 pm

https://www.scirra.com/manual/87/8-direction

Read that, it'll give you plenty of information about the movement behaviour
B
12
S
2
G
1
Posts: 42
Reputation: 879

Post » Thu Mar 03, 2016 6:36 am

Message: Marko23 can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
That wasn't helpfull. I read tutorial but still didn't help to solve the problem.
I don't have in my 8 direction option range of movement or to chose the movement.
I have only this option:

http://s15.postimg.org/piu2pv0nv/8_dire ... nction.png
B
3
Posts: 6
Reputation: 187

Post » Thu Mar 03, 2016 6:39 am

s15.postimg.org/piu2pv0nv/8_direction_function.png

(is not the spam for sure)
B
3
Posts: 6
Reputation: 187

Post » Thu Mar 03, 2016 7:27 pm

See the image below:

http://prntscr.com/aass4g
B
12
S
2
G
1
Posts: 42
Reputation: 879

Post » Fri Mar 04, 2016 6:21 pm

Thank you, thank you, thank you a lot, lot! You save my life :)

Thank you one's more!
B
3
Posts: 6
Reputation: 187

Post » Sat Mar 05, 2016 4:55 pm

No problem, happy to help!
B
12
S
2
G
1
Posts: 42
Reputation: 879


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests