View Single Post
Stijn

Administrator

Joined: Mar 2001

Posts: 6,968

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

May 20, 2005, 05:28 AM
Stijn is offline
Reply With Quote
A special spawning function wouldn't be needed then, you could just do something like this:

Code:
create_object("foo")
foo.position.x = 5
foo.position.y = 9
foo.status.active = true
foo.status.visible = true
foo.gameplay.behaviour = BEHAVIOUR_TURTLE
foo.gameplay.friendly = false
foo.sprite = SPRITE_TURTLE
Would create an enemy turtle at position 5,9. This is a lot more flexible, as it could easily be extended by other properties (foo.gameplay.points for the points it could earn you, foo.gameplay.damage for the damage it takes before dying, etcetera)

Last edited by Stijn; May 20, 2005 at 06:04 AM.