Kullsyre
06-23-2009, 05:47 PM
Hello everyone. This is my very first post in this forum and I hope someone will be able to give some advice to my problem.
I have just finished my very first flash-game. (I am a total newbie) Its an escape the room-kind of game (except you try to enter a house instead and everything works like a charm EXCEPT for one little very serious snag:
When you have located and collected objects and they are in the inventory you can drag them around - and if you click when youre in the inventory the object snaps back to the x and y values just fine - BUT - IF you drag them into the "rooms"-view first and then release the mouse-button and "drop" (click) them on another object already in the inventory - it gets stuck on top or behind it and the game is ruined. You cant get any further - the object can never be removed.
I have followed this tutorial:
http://www.shatteredgames.com/tutorial
and all code is copied from there.
If someone wants to try out my game and see the problem - here is the link: http://pissekult.com/house
So you wont have to search for things: - there is a cigarette hidden to the right low down from the front door of the house - a badly drawn ketchup bottle to the right in the frame with the grassy field - and a hotdog on the little bench in the middle of the frame with the barn, just to name a few. The problem happens regardless of what object is used/dragged.
If someone would be kind enough to have a look and give me some tips to solve this problem - it would be greatly appreciated. And if it would help - I could upload my .fla - file for you to look at.
I have just finished my very first flash-game. (I am a total newbie) Its an escape the room-kind of game (except you try to enter a house instead and everything works like a charm EXCEPT for one little very serious snag:
When you have located and collected objects and they are in the inventory you can drag them around - and if you click when youre in the inventory the object snaps back to the x and y values just fine - BUT - IF you drag them into the "rooms"-view first and then release the mouse-button and "drop" (click) them on another object already in the inventory - it gets stuck on top or behind it and the game is ruined. You cant get any further - the object can never be removed.
I have followed this tutorial:
http://www.shatteredgames.com/tutorial
and all code is copied from there.
If someone wants to try out my game and see the problem - here is the link: http://pissekult.com/house
So you wont have to search for things: - there is a cigarette hidden to the right low down from the front door of the house - a badly drawn ketchup bottle to the right in the frame with the grassy field - and a hotdog on the little bench in the middle of the frame with the barn, just to name a few. The problem happens regardless of what object is used/dragged.
If someone would be kind enough to have a look and give me some tips to solve this problem - it would be greatly appreciated. And if it would help - I could upload my .fla - file for you to look at.