Ragnarok Online like movement

For questions about using Classic.

Post » Mon Oct 12, 2009 8:50 am

So I was trying to mimic the ragnarok online game movement system, pretty much similar to Diablo and etc. I just can't seem to find how to change the sprite animation whenever the player's collision box moves in a 45/90/135/etc... or so movement.

Right now, its stuck in a 45 degree movement even if the character is walking backwards and stuff. You can even do the moon walk with it woot! Still, I tried searching here, and found something about the preference section or something about it. Problem is, I cant find it in the Layout editor.

So here's my .cap thing: http://www.mediafire.com/?jzmygzmjmfr

Thanks in advance guys!

BTW, can Construct do AI stuff? I mean advance AI stuff?
B
10
S
5
G
8
Posts: 203
Reputation: 4,395

Post » Mon Oct 12, 2009 9:50 am

you could do something like this for changing the player's animation angle:



what I did was make some subevents, which use the system condition "compare" then I just compared the angle of RTS motion to check whether it was between 0-90 etc.
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Mon Oct 12, 2009 1:21 pm

The animator will take care of most of it, but in order to have eight direction movement, you need to have eight different angles. Also you should limit the number of angles in preferences to eight.
Check out the Ghost shooter tutorial it will cover the basics of where the layout editor is.

[quote:103paprj]BTW, can Construct do AI stuff? I mean advance AI stuff?[/quote:103paprj]

Yes.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Tue Oct 13, 2009 5:56 am

I see, well I guess those codes did some magic in it. Although the sprite still "kinda" rotates a little before going to the spot where I clicked my mouse. So how do I fix that? BTW, in the .cap that I uploaded, I've only imported some sample sprites with different angles just for testing. So yeah. :P

I'm gonna check the ghost shooter (again). Maybe I forgot some stuff to look there. Thanks again for the help guys. The truth is, me and my pals are gonna use Construct for our "Agent - Based AI through RPG" thesis. Thats why I need to cover most or all of the basics before December.
B
10
S
5
G
8
Posts: 203
Reputation: 4,395

Post » Tue Oct 13, 2009 10:41 am

Construct can support advanced AI algorithms if you can code them. Since AI algorithms are often designed and displayed as flow charts, I am pretty sure that you can implement anything in Construct with its events alone. All it takes is advanced eventing knowledge (the tricks and stuff).
B
62
S
21
G
12
Posts: 1,910
Reputation: 13,155


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 7 guests