Problem with creating items
Posted: Sat Sep 17, 2005 3:38 pm
I have an interesting problem, and was wondering if anyone here could help.
Up until now, I have been generating objects in the dungeon that are not there when the game begins (IE: in a shop) by having a shooter in a hidden part of the dungeon pointing at a teleport. When a coin is placed in a slot, the shooter shoots the relevant item bought which goes into the teleport and is teleported to an alcove where the player can take it.
I now have a problem, though, in that I wish the player to buy a FUL bomb. The problem is that the player inserts the coin, the shooter fires the FUL bomb into the teleport and it explodes on contact with the alcove instead of the FUL bomb appearing in the alcove. So how do I spontaneously generate a FUL bomb in an alcove?
Up until now, I have been generating objects in the dungeon that are not there when the game begins (IE: in a shop) by having a shooter in a hidden part of the dungeon pointing at a teleport. When a coin is placed in a slot, the shooter shoots the relevant item bought which goes into the teleport and is teleported to an alcove where the player can take it.
I now have a problem, though, in that I wish the player to buy a FUL bomb. The problem is that the player inserts the coin, the shooter fires the FUL bomb into the teleport and it explodes on contact with the alcove instead of the FUL bomb appearing in the alcove. So how do I spontaneously generate a FUL bomb in an alcove?