How do I a random move using the 4 direction?

Get help using Construct 2

Post » Wed Jul 15, 2015 2:42 pm

I tried this way.

Image

When walking to the right, it is fine. But for the other sides it ends up upside down. I've tried every way.
B
6
Posts: 15
Reputation: 287

Post » Wed Jul 15, 2015 5:41 pm

Hope this helps, I´ve simplified the process but you can use the "direction" variable you used before if you want :)
https://www.dropbox.com/s/yz0erazuy2co9 ... .capx?dl=0
EDIT: added screenshot just in case
Image
B
9
S
3
Posts: 152
Reputation: 1,270

Post » Wed Jul 15, 2015 6:38 pm

Message: ShiinxD is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
Can you fix this?
B
6
Posts: 15
Reputation: 287

Post » Wed Jul 15, 2015 6:38 pm

https: //www.dropbox.com/s/bn80vyzjknkqeb0/Icant.capx?dl=0
B
6
Posts: 15
Reputation: 287

Post » Thu Jul 16, 2015 2:19 am

Someone help me? ç.ç
B
6
Posts: 15
Reputation: 287

Post » Thu Jul 16, 2015 3:19 am

I made a similar topic a little while ago; read up and see if you like it.

The method doesn't check for collisions with solid objects; you'll have to code that in yourself.

viewtopic.php?f=147&t=148549
Check out my VGM on my soundcloud page!
Video-Game Music: E.C.2151
B
9
S
3
G
2
Posts: 194
Reputation: 1,713

Post » Thu Jul 16, 2015 3:43 am

You looked my example? Does your way, you can put animation 4 directions at the enemy? One that works?
B
6
Posts: 15
Reputation: 287

Post » Thu Jul 16, 2015 8:55 am

B
9
S
3
Posts: 152
Reputation: 1,270

Post » Thu Jul 16, 2015 1:11 pm

Oh man, thanks. You helped me a lot. :D :D
B
6
Posts: 15
Reputation: 287


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 61 guests