Uh... I have another question.

NOTE: I HATE A LOT OF YOUR ZZT GAMES, SO WATCH OUT!

Moderators: Commodore, Zenith Nadir

Post Reply
User avatar
Zippy
POKEYMAN?!
Posts: 21
Joined: Sun Oct 01, 2006 4:08 pm
Location: Behind that jar of pickles

Uh... I have another question.

Post by Zippy »

How do I make an object animated, like a star? I've checked the manual, and I can't seem to find anything about it.
Purple Platypus Games - "We make games!"

Current Projects:

SPACE GUYS
Coming: 2008, tops
Space is no longer safe when Joel and Steve, two of the finest astronauts around, go on a weird adventure through space.
User avatar
Quantum P.
Level 17 Accordion Thief
Posts: 1433
Joined: Fri Sep 12, 2003 1:41 am
Location: Edmonds, WA
Contact:

Post by Quantum P. »

There is a command called #char. You give it a number, and the object will change its character to the ASCII character of that number. For example, a star-like spinning thing:

Code: Select all

:loop
/i#char 196
/i#char 92
/i#char 179
/i#char 47
#loop
The /i commands are to make the object pause between character changes. Otherwise, the character would change too fast to properly animate.

There are various ASCII charts on which you can see which characters have which numbers.
User avatar
Zippy
POKEYMAN?!
Posts: 21
Joined: Sun Oct 01, 2006 4:08 pm
Location: Behind that jar of pickles

Post by Zippy »

It ain't working. I get "Bad Command: LOOP" and the things stop animating. What the hell happened?

EDIT: Also, how do I move the player's starting point in a level? Like, for cutscenes?
Purple Platypus Games - "We make games!"

Current Projects:

SPACE GUYS
Coming: 2008, tops
Space is no longer safe when Joel and Steve, two of the finest astronauts around, go on a weird adventure through space.
User avatar
Alexis Janson
wacky morning DJ
Posts: 307
Joined: Fri Feb 20, 2004 1:05 am

Post by Alexis Janson »

YOU DID IT WRONG
User avatar
Zippy
POKEYMAN?!
Posts: 21
Joined: Sun Oct 01, 2006 4:08 pm
Location: Behind that jar of pickles

Post by Zippy »

Flimsy Parkins wrote:YOU DID IT WRONG
NO U
Purple Platypus Games - "We make games!"

Current Projects:

SPACE GUYS
Coming: 2008, tops
Space is no longer safe when Joel and Steve, two of the finest astronauts around, go on a weird adventure through space.
User avatar
Quantum P.
Level 17 Accordion Thief
Posts: 1433
Joined: Fri Sep 12, 2003 1:41 am
Location: Edmonds, WA
Contact:

Post by Quantum P. »

To move the player, you press F1 to bring up the Item menu, then Z to place the player at the cursor's location.

Also, about the error you got: Is the ":loop" part of the program on its own line, and is :loop spelled correctly?
User avatar
Commodore
fgsdfs
Posts: 2471
Joined: Wed Mar 12, 2003 5:44 pm
Location: :noitacoL
Contact:

Post by Commodore »

more precisely, the error is telling you that you don't have a message of that name, which is why you need to check the spelling and/or make sure it is its own line.
*POW* *CLANK* *PING*
User avatar
Zippy
POKEYMAN?!
Posts: 21
Joined: Sun Oct 01, 2006 4:08 pm
Location: Behind that jar of pickles

Post by Zippy »

Quantum P. wrote:Also, about the error you got: Is the ":loop" part of the program on its own line, and is :loop spelled correctly?
Yes, it is both spelled correctly and on its own line.

EDIT: Another question. Geez. I want one object to control the movement of another object, so the two objects don't move at the same time. How do I do this? Zaphod
Purple Platypus Games - "We make games!"

Current Projects:

SPACE GUYS
Coming: 2008, tops
Space is no longer safe when Joel and Steve, two of the finest astronauts around, go on a weird adventure through space.
User avatar
Commodore
fgsdfs
Posts: 2471
Joined: Wed Mar 12, 2003 5:44 pm
Location: :noitacoL
Contact:

Post by Commodore »

well it's tough to know what you mean exactly. If you name your objects by making the first line:

@name

or

@bob

then you can have other objects #send bob a message and you can make bob use a piece of code to move. Something like this, though you'll have to figure out how to make it loop, as this will only make bob move once.

@thing
#send bob:move

@bob
#end
:move
?seek
*POW* *CLANK* *PING*
User avatar
Quantum P.
Level 17 Accordion Thief
Posts: 1433
Joined: Fri Sep 12, 2003 1:41 am
Location: Edmonds, WA
Contact:

Post by Quantum P. »

What's the context of your problem - that is to ask, why do you need them not to move at the same time?

Also, did you ever get that animation working? If not, I'd like to look at the program for the animated object.
Post Reply