This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
_Joseph_'s profile picture

How to play star wars & how to delay

Started by _Joseph_, 04 August 2015 - 11:41 AM
_Joseph_ #1
Posted 04 August 2015 - 01:41 PM
When I try to run the secret easter egg star wars it dosen't work any help please ?

also when writing a program how would I delay it before the next command
Astrophylite #2
Posted 04 August 2015 - 04:44 PM
When I try to run the secret easter egg star wars it dosen't work any help please ?

also when writing a program how would I delay it before the next command
When running the star wars, does it throw any errors or is the error that it doesn't exist?
How do you mean "delay it before the next command"? Do you mean, the program performs an action and then waits a little bit before continuing?

EDIT: You cannot play the movie anymore as it has been removed.
Edited on 04 August 2015 - 02:51 PM
Lyqyd #3
Posted 04 August 2015 - 05:14 PM
The movie was not removed. It is no longer in rom, but it is on a treasure disk. You'll have to search through some dungeon loot to find it.
Astrophylite #4
Posted 04 August 2015 - 05:46 PM
Thank you Lyqyd. I was wondering where it went :)/>
Correct me if I'm wrong, but can't you just spawn it in ?

EDIT: Nope, you can't
Edited on 04 August 2015 - 03:48 PM
flaghacker #5
Posted 04 August 2015 - 06:40 PM
also when writing a program how would I delay it before the next command

The sleep function seems to be what you're looking for:

print ("Hey!")
sleep (5)
print ("Hi, 5 seconds later!")
You can put any number there, it doesn't have to be an integer (8, 1, 0.5).