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 → Help please
Help please
2002-01-11, 4:48 PM #1
i cannot find a cog for a Ship that moves in frames on a level....if any1 can help i will give em credit in read me for helping...
2002-01-11, 5:34 PM #2
As long as Im getting credit.... [http://forums.massassi.net/html/wink.gif]


Code:
#01/2002 GBK
Symbols
Message Startup
Thing Ship
Int Targetframe=1
Flex Movespeed=4.0
End
Code
Startup:
Sleep(1.0);
Movetoframe(Ship, Targetframe, Movespeed);
Stop;
End



A very simple script. This one moves the ship right on startup. Please specify wheither you need something different.

About the variables, 'Targetframe' is the frame number of the last frame. If you are getting this from JED, be sure to subtract one.

I dont know if it works, I just typed it into the box. But it should... [http://forums.massassi.net/html/biggrin.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2002-01-11, 5:38 PM #3
so like how do i insert that into a level??? like make a cog and enter that as code or what...i dont do cogs i just needed 1 for the ship...also GBK you will get credit in the read me for it....if i can use it

[This message has been edited by SlingerX (edited January 11, 2002).]
2002-01-11, 5:51 PM #4
TY GBK for giving me the code and helping me set it up i will put you in credits and all that

↑ Up to the top!