Random Movement Issue with Capx

Get help using Construct 2

Post » Thu Nov 28, 2013 8:28 am

Hello everyone,

I wanted to create a boss that only moves horizontally. He moves left and right randomly, and when he reaches certain x axis, I want him to turn back. So far, it is going ok, except that it sometimes stops at certain point of time. I don't understand what is causing it to stop or pause. I've made sure that the simulate left and right controls never collide, so I have really no idea why it happens.

The capx is below

https://www.dropbox.com/s/jonrbw5ycnm8iav/SeperateBossLevel1_07.capx

Would really appreciate any help.
B
45
S
23
G
31
Posts: 687
Reputation: 20,600

Post » Thu Nov 28, 2013 10:11 am

Too many conflicting events, fixed here
B
46
S
16
G
74
Posts: 2,088
Reputation: 44,185

Post » Thu Nov 28, 2013 10:43 am

@plinkie

Thanks for helping out plinkie.

But weirdly enough, the random movement doesn't function. I am not sure why. I tested it out about 8 times so far, and all it does is go right, than turns left when it reaches the end. And vice versa. And to be honest..,I am not sure why it doesn't.
B
45
S
23
G
31
Posts: 687
Reputation: 20,600

Post » Thu Nov 28, 2013 10:44 am

Ohh right you wanted it to be random movement. I just made it go left-right without stopping unnecessarily. I will look into the random movement give me a sec..
B
46
S
16
G
74
Posts: 2,088
Reputation: 44,185

Post » Thu Nov 28, 2013 11:00 am

Redownload and it's fixed.
Also, the reason why it was stopping is because BossMove making it move left can be set when BossMode is making it move right etc so it moves left/right at the same time hence static..plinkie2013-11-28 11:01:45
B
46
S
16
G
74
Posts: 2,088
Reputation: 44,185

Post » Thu Nov 28, 2013 11:12 am

@plinkie

Thank you plinkie. Wow, I thought they would never run two movement together because I used different BossMode for each. Haha guess I still got lots to learn.

Could you please upload the capx for me to study plinkie. Would really appreciate it.
B
45
S
23
G
31
Posts: 687
Reputation: 20,600

Post » Thu Nov 28, 2013 11:13 am

Redownload from same link above! :)
B
46
S
16
G
74
Posts: 2,088
Reputation: 44,185

Post » Thu Nov 28, 2013 3:57 pm

@plinkie

Haha thank you very much! Yup, everything works perfectly! I am understanding the C2's syntax a bit better now.

Haha did I mention thank you?! I really appreciate it!
B
45
S
23
G
31
Posts: 687
Reputation: 20,600


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 6 guests