Page 1 of 1
Uh... I have another question.
Posted: Wed Oct 04, 2006 11:24 pm
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.
Posted: Wed Oct 04, 2006 11:59 pm
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.
Posted: Thu Oct 05, 2006 9:35 pm
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?
Posted: Thu Oct 05, 2006 9:43 pm
by Alexis Janson
YOU DID IT WRONG
Posted: Thu Oct 05, 2006 9:43 pm
by Zippy
Flimsy Parkins wrote:YOU DID IT WRONG
NO U
Posted: Thu Oct 05, 2006 10:22 pm
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?
Posted: Thu Oct 05, 2006 11:47 pm
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.
Posted: Fri Oct 06, 2006 12:53 am
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
Posted: Fri Oct 06, 2006 6:41 am
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
Posted: Fri Oct 06, 2006 3:56 pm
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.