Custom Event-Based Topdown movement.

Post your own tutorials, guides and demos.

Post » Sun Nov 18, 2007 6:47 pm

Here's a little .cap I did to help some newbies to start scripting their movements from scratch.

Download : http://www.mediafire.com/?ax0nm30wnl2

Commands :

WSAD = Movement
Mouse = Look around
B
2
S
2
G
5
Posts: 512
Reputation: 2,674

Post » Sun Nov 18, 2007 10:29 pm

this helps, but im looking to replicate the car movements up arrow function. accelerating towards the direction the sprite is facing..which would be sprite.angle. but i dont know how to addd that speed. i tried everything in the physics section and some in the other
B
2
G
5
Posts: 22
Reputation: 1,294

Post » Mon Nov 19, 2007 3:35 am

That's a nice example. I especially like the smooth rotation instead of instantly pointing at the mouse.

Good job :)

[quote="Tidus97":lhryudpj]this helps, but im looking to replicate the car movements up arrow function. accelerating towards the direction the sprite is facing..which would be sprite.angle. but i dont know how to addd that speed. i tried everything in the physics section and some in the other[/quote:lhryudpj]

Edit: Answered your question in a separate thread (so I don't clutter up SuperV's) :

[url:lhryudpj]http://scirra.com/phpBB2/viewtopic.php?t=280[/url:lhryudpj]
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests