All though this is a simple coding i get no errors but i get no sound
obj
forest_entrance
density=0
Enter()
view()<< sound('Sweet Sounds/forest1.wav',1)
sleep(100)
usr << sound('Sweet Sounds/Forest2.wav',1)
sleep(100)
usr << sound('Sweet Sounds/Forest3.wav',1)
usr << sound('Sweet Sounds/forest1.wav',)
ID:147102
Sep 21 2004, 10:31 am
|
|
Sep 21 2004, 10:32 am
|
|
I get the impression that what you want is a turf, not an obj. Objs are only Enter()ed when something is Move()ed into them. Turfs are Enter()ed whenever something steps on them.
|
In response to Foomer
|
|
so is that what ur saying i need to do?
turf forest_entrance density=0 Enter() view()<< sound('Sweet Sounds/forest1.wav',1) sleep(100) usr << sound('Sweet Sounds/Forest2.wav',1) sleep(100) usr << sound('Sweet Sounds/Forest3.wav',1) usr << sound('Sweet Sounds/forest1.wav',) |
You did a few things wrong. 1: You cannot Enter() an obj. 2: Instead of setting things to the forest object, you set it to all the objects. That's fixed by indenting:
obj Though, still, it cannot be an object. So make it an area? area |
In response to Crashed
|
|
He's also using usr in Enter().
|
In response to Unknown Person
|
|
i have it now thanks to u all
|
In response to Unknown Person
|
|
In response to Foomer
|
|
that coding will bring up the sound but once u get to the place on the mpa u cant move lol
turf forest_entrance icon = 'area.dmi' Enter() density = 0 usr << sound('Sweet Sounds/forest1.wav',) sleep(100) usr << sound('Sweet Sounds/Forest2.wav',1) sleep(100) usr << sound('Sweet Sounds/Forest3.wav',) sleep(100) usr << sound('Sweet Sounds/forest1.wav',1) |
In response to Crashed
|
|
Crashed wrote:
Usr is the atom entering, src is the atom being stepped on. He's right, use usr. Actually he should be using the argument, not usr. And actually, he should be using Entered(), not Enter(). Try this: turf |
In response to Foomer
|
|
yea that works
|
In response to Crashed
|
|
Crashed wrote:
You did a few things wrong. 1: You cannot Enter() an obj. Sure you can! However, that would require calling something.Move(obj) yourself. |
In response to Foomer
|
|
Still using usr in view(). That should be view(A). In fact, it seems like it should just be A to be consistent with the rest of the proc.
|
In response to Crashed
|
|
Dude, don't edit your post to completely excise its content just because you made a mistake. Since someone else already replied to it, it's now context in a discussion. If they hadn't, of course deleting would be the better option if you felt the post shouldn't stay up, or you could have edited in a correction. Taking out all the content entirely is just pointless.
Lummox JR |
In response to Lummox JR
|
|
Perhaps its just a paranoid fear of doing something wrong on a forum where people jump down your throat for it.
|
In response to Foomer
|
|
I actually decided to delete it BEFORE it had been replied to, because I realised by testing it was wrong. Since for some reason I do not have the "delete" button, I simply edited it out and hoped for a moderator to delete it.
|
In response to Crashed
|
|
Crashed wrote:
I actually decided to delete it BEFORE it had been replied to, because I realised by testing it was wrong. Since for some reason I do not have the "delete" button, I simply edited it out and hoped for a moderator to delete it. The delete button disappears once someone replies to your post. But since there was helpful info in the reply, it didn't make sense to lose that subthread. Lummox JR |