Page 1 of 1

some Coding I made

Posted: Sun Jun 21, 2009 7:16 am
by NARFNra
This coding will make a ship circle around the screen, and also rotate to stay looking at the center of the screen, or just rotate along with its turns.

Code: Select all

waypoints,1,2.5,250,100,100,250,100,400,250,500,500,500,700,400,700,250,500,100
rotatePart,0,-0.5,0,0,0
Examples:
http://zetaflow.skylogic.ca/game/play/10172/ Crawler Tank, stares at center of screen, and wheels along walls.
http://zetaflow.skylogic.ca/game/play/6976/ Circler, and old level where I invented the circle coding.

Re: some Coding I made

Posted: Sun Jun 21, 2009 8:17 am
by Sasadad
Hey, that's pretty cool, NARF. I don't think I've ever used the waypoints command, this is a good use of it. People should make more ready-to-use code bits like this. *Goes off to do so*


EDIT:
"Plus" Motion (Up, down, left, right):

Code: Select all

waypoints,1,3,400,300,400,100,400,500,400,300,200,300,600,300
Just an experiment with waypoints. Might be useful for some level.

Re: some Coding I made

Posted: Sun Jun 21, 2009 3:33 pm
by NARFNra
Hey thanks Sasadad! I am going to use that to finish my renovations on my quest for the 8 moons series, I think they are much better now!

Code: Select all

AI_waypoints,1,3,400,300,400,100,400,300,200,300,400,300,400,500,400,300,600,300
This is one that goes up left down right![/color]

Re: some Coding I made

Posted: Mon Jun 22, 2009 7:06 am
by NARFNra

Code: Select all

waypoints,1,3,100,200,700,200
Back and Forth movement, as shown HERE:
http://zetaflow.skylogic.ca/game/play/9820/

Re: some Coding I made

Posted: Mon Jun 22, 2009 7:56 am
by Sasadad
Those could also be useful. This is fun! :)

Also, this is the 1000th post on the forums.