Quote:
Originally Posted by DustyPorViva
Also:
function onCreated(){
setshape(1,2,32);
this.canplay = 1;
play("item.wav");
setTimer(15);
}
You're setting the shape to 2 pixels. Typo? :P
|
No typo there. Sorta. I was just testing it right now to make sure the shape is actually being set. It's normally 16. Looks like I forgot to revert it in the post. You see, a lot of the time when I post something like this on the forums, I'm in the middle of messing with various portions of the code. I usually have to clean it all up before I post them. Coulda sworn I fixed that part in the post though. Guess not lol
edit: OH right. That was the clientside portion. I remember catching that in my script but neglected to edit my post. That's a different problem I was having where I was picking up the rupee and it was destroying, but no sound was being played about half the time. The canplay stuff was left over when I had it hide and sleep on the serverside after being touched before destroying itself in attempts to give it plenty of time to play the sound in case it was lag. That prevented the sound from playing again when you ran over the spot with the invisible rupee. Didn't fix it though, so I took the serverside portion of the script out. I left the clientside stuff there since I have a jump script that I'm experimenting with. It would play the sound if you jumped over it but didn't actually grab the rupee. On second thought though, I can just put that Z detection there too. Of course, this is all still unrelated to the hitbox problem.