The Dink Network

Is it possible to move a sprite diagonally in a cut scene?

July 8th 2008, 12:59 AM
wizardb.gif
dinknround
Peasant He/Him United States
It looked good on paper... 
I just ran redink's movie d-mod (or t-mod) and looked at the scripts. All the movement was N,S,E,W. Is there a way to get a sprite to follow a diagonal line across a screen during a cut scene? (e.g., NE to SW)
July 8th 2008, 01:50 AM
custom_robj.png
Robj
Jester He/Him Australia
You feed the madness, and it feeds on you. 
direction number:
7 for north-west
9 for north-east
3 for south-east
1 for south-west
July 8th 2008, 01:52 AM
sob_scorpy.gif
DinkDude95
Peasant He/Him Australia
The guy with the cute D-Mod. 
Yes, you use directions 7, 9, 1, and 3. And when you move it like that, you use the X coordinate. Not that that makes much sense, but I guess...

move_stop(1, 9, 320, 1);

The first number is the sprite or whatever (1 = Dink). The second is the direction (9 = diagonal-north-east). The third number is the X coordinate to move Dink to. Basically, the Engine takes care of this, as long as you put in some number, Dink will move diagonally toward that spot. And, the last number is 1. It doesn't have to be, but I generally set it as that to avoid bugs. (1 means the sprite will move through hardness. 0 means he'll stop at hardness).

I know it's kind of all over the place, but you understand?
July 8th 2008, 09:09 AM
wizardb.gif
dinknround
Peasant He/Him United States
It looked good on paper... 
Thanks guys, I'll try this out.