How do I use x without changing

Get help using Construct 2

Post » Tue Sep 22, 2015 11:47 am

Hello, cleverest developers.

I want to use fixed x of objects.

How to fix x of objects?
B
4
Posts: 16
Reputation: 232

Post » Tue Sep 22, 2015 12:01 pm

Maybe you could explain what you are trying to do, so an answer can be given?

Objects without behaviours and/or actions attached will allways stay at the same position, so a fixed x, but ofcourse also a fixed y..
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 » Tue Sep 22, 2015 1:01 pm

LittleStain wrote:Maybe you could explain what you are trying to do, so an answer can be given?

Objects without behaviours and/or actions attached will allways stay at the same position, so a fixed x, but ofcourse also a fixed y..


Well, it uses moving of enemies.

So, Object.X is changed by passing time.

I want to anchor to fix x of objects.

For example, the x of object is 1500

object is going to 1450

and if reached, going to 1550

and again going to 1450

and if reached, going to 1550

How can I solve this problem?
B
4
Posts: 16
Reputation: 232

Post » Tue Sep 22, 2015 1:28 pm

What behaviour are you using to move the enemy?
Would using detection-sprites to change the direction work in your game?
Should all instances of the enemy be restricted to a certain range of x?
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: No registered users and 7 guests