ID:140993
Jul 14 2009, 4:02 pm
|
|
I have a star that floats around. I want it so when my usr dies the stars apear and then after the stars he teleports to start. But all i need help is how to make the stars apear...
|
Jul 14 2009, 5:07 pm
|
|
overlays? flick()? image() [if you want it to be seen by the person only]?
|
In response to GhostAnime
|
|
when he dies i want it to be seen only for him and i want it to show up when he dies. After it floats around 3 times it will teleport him to the start. I have all that done i just want to know how to code it so when he dies the star will float... how hard is that?
|
In response to Bugboy79
|
|
You need to actually describe in detail what you want. Where do you want your graphic/icon ("stars") to appear exactly? Also, how big is it? One tile (32x32), or more? etc.
|
In response to Kaioken
|
|
Ok i want them to apear on my guy when he is ON a skeleton. It
takes up one square. Can you tell me what coding to type so it apears when he dies. What is the line of coding to make the stars show up? |
In response to Bugboy79
|
|
Since you want it to only be displayed to that one player, you'd use an image object which's location is that player (so it appears on top of him), and is output to that player . Look up the image() proc for how to use one, also look up the images list.
EDIT: Oh, and when the stars are supposed to be gone, you pretty much delete the image, since you won't be needing it anymore. You can use del on it like any other object. It can also be garbage collected automatically if you un-display it to the player (remove it from his images list), and you may also need to give it a null loc. |
In response to Kaioken
|
|
online it shows up as Beyond not Byond. like byond image imagination? JUST SHOW ME HOW TO DO ITTTTTT PLZZZ!
|
In response to Bugboy79
|
|
Look up image()... forum search about image()... read Kaioken's post carefully as he explains to you how to use the image() procedure.
|
In response to GhostAnime
|
|
lol this is funny that kaigon or whatever his name is could confuse me SO MUCH
just show me how images work because online they dont and on image() thing they REALLY confused me.... |
In response to Bugboy79
|
|
Forum search! I posted a tutorial on how to use image() for a one-player effect before.
|
In response to Bugboy79
|
|
"Kaigon", lol.
Did you look the vars I mentioned up in the DM Reference*? *: Press F1 in Dream Maker or view it in this site by going to the Developers menu at the top of the page. |
In response to Bugboy79
|
|
You could also try making it a screen object, something similar to a hud. This would also ensure it was only seen by the recently deceased.
Key things to look up in the reference would be screen var(client) and screen_loc. By the way, your not getting code in a response because you did not post code with a problem, as this is the code problems forum. You might have better luck in the Developer How-To or Design Philosophy forums with this type of issue. |
In response to Jotdaniel
|
|
It's not that, he's not getting a snippet from us because we know his type: he'll just copy/paste/modify it. If he took his time looking up image() in the DM Reference and/or forum searching, he would not be having this problem any more. Instead, he whines to get a snippet when we tell him to look up to...dum, dum, duuummmmm... learn.
|
In response to GhostAnime
|
|
No, I do understand what your saying. I was telling him pretty much just that, and providing a different, possibly easier to understand, way to do it in a less rude manner than I felt to per the responses he has been giving.
|