O.K., I'm making a game which uses a sprite that makes everything dark (using the ghost effect). I also have a problem: The other sprite (the computer) isn't detecting the boxes! I have no clue why! IT detects the doors, but not the boxes! Is it the ghost effect sprite? Is it detecting that?!How can I fix this?
Offline
Bluestribute wrote:
O.K., I'm making a game which uses a sprite that makes everything dark (using the ghost effect). I also have a problem: The other sprite (the computer) isn't detecting the boxes! I have no clue why! IT detects the doors, but not the boxes! Is it the ghost effect sprite? Is it detecting that?!How can I fix this?
Are the boxes similar in color? It might be that they are not being properly detected.
Offline
of course! I was making a science project game for the sea scorpion and I had this same prob, its a little tricky you have to have it detecting the colors on the sprites with the black thing showing
Offline
So how do I detect the boxes. Yes, they are a different color than anything else in the room, but it can't detect them
Offline
Zelda123 wrote:
Are you sensing for the sprite or for a color?
Either. Whatever is easier to make a script for
Offline
Bluestribute wrote:
Zelda123 wrote:
Are you sensing for the sprite or for a color?
Either. Whatever is easier to make a script for
Are you currently sensing for a colour or a sprite? If you're sensing for a colour, then you may get some problems with the ghost effect (is it the boxes being ghosted? Is there a ghosted sprite on top of the boxes?). You shouldn't have a problem with sprite sensing.
Offline
coolstuff wrote:
Bluestribute wrote:
Zelda123 wrote:
Are you sensing for the sprite or for a color?
Either. Whatever is easier to make a script for
Are you currently sensing for a colour or a sprite? If you're sensing for a colour, then you may get some problems with the ghost effect (is it the boxes being ghosted? Is there a ghosted sprite on top of the boxes?). You shouldn't have a problem with sprite sensing.
I do though. I put in a <if touching boxes> block, and it failed. I don't know why. If they were on the same layer, would that help? Because I have a forever loop putting the darkness in front to have that eerie effect
Offline
keroro645 wrote:
Is the sprite pointing towards something.
It touch senses it. I don't like these things! I have these awesome ideas, and get ruined by something like this! I would love the answer for this, or just go to the topic I made and submit a level so hopefully I won't need to deal with this sensing!
Offline
keroro645 wrote:
Remember the ai for the deathmatch game we were making.I think the reason the ai character wasnt working was that it was always pointing towards thehuman character.
NOt this. This is a completely random AI with no particular course
Offline