Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → How would I...
How would I...
2001-03-16, 10:32 PM #1
...make a thing move forward without using frames?

------------------
The death is smiling to all of us,
All what we can do, is smile back.
WHAT?
2001-03-16, 10:57 PM #2
Well you can make the move to a ghost location like in this cog of mine:
Code:
symbols

thing        enemy0                                     

thing        goto0                                                    

sector       entersector                                                      

int          done=0                             local                         

message      entered                                                          


end                                                                           

code

//-------------------------------------------------------------------------------------------

entered:
	if (done) return;
	done=1;

	AISetMoveThing(enemy0, goto0);

return;

end
2001-03-16, 11:04 PM #3
It's not AI thing, and it should use vectors, i just have no idea how do i make it using vectors for moving...

------------------
The death is smiling to all of us,
All what we can do, is smile back.
WHAT?
2001-03-17, 3:04 PM #4
You could use

SetThingLook(thing,vector);
SetThingVel(thing,vector);

The first points it in the direction of the vector, and the second will make it move. I am not sure how well this will work, and I've never actually used either command, so you will have to tweak it to make sure everything goes ok. Im not even sure they do what I think they do.
2001-03-19, 4:19 AM #5
If it got no friction (like it's in the air)

ApplyForce(moveThing, VectorScale(GetThingLVec(moveThing), speed));

This should move the thing forward with speed "speed".

------------------
http://millennium.massassi.net/ - Millennium

↑ Up to the top!