Posted: 03 Mar 2010, 10:53
Why is that? I'm only talking about the default behavior which can be overwritten by placing tiles on top.
SmartFoxServer support forums
https://forums.smartfoxserver.com:443/
We are creating a game where the user is able to customize his/her floor. At the moment we are using items that take up the entire area of the tile, so the user can drag and drop tiles onto his/her room. So whenever the user drags a tile over another tile, we would like for the old tile to be removed.bax wrote:This is not possible. Can you better describe the reason behind this request, so we can evaluate it.warhell wrote:Is there anyway to have tiles replace other tiles instead of just stack? Example, a project I'm working on contains tile items (floor tiles). I would like it such that if a user places a tile on top of another tile, the old tile is replace by the new tile, instead of having them stack.
We need this feature toowarhell wrote:At the moment we are using items that take up the entire area of the tile, so the user can drag and drop tiles onto his/her room.
No, sorry.warhell wrote:Also, is there an ETA on when NPC implementation will be available?
Yes. We used the SWC as we need external graphical assets, built with Flash. But if you have a pure actionscript avatar class, there's no need you create an swc. In your main application class simply create a variable pointing at your class (ie: var avatar:MyCustomAvatarClass), so that the compiler includes it in the compiled application SWF. At runtime the class will be available in the default application domain, and OpenSpace will be able to get a reference to it and instantiate it.warhell wrote:Is there a way to avoid using the Flash authoring tool (Flash CS4) to create the avatar SWC? I'm creating avatars by loading a 3D image via Papervision, so I really have no need to use CS3, all I use is .as classes. Is there a way to generate the SWC at run-time when I compile my Flex project? Is it possibly to bypass using a SWC and just pass in the .as class to OpenSpace?
Thanks a lot! I implemented the changed and it compiles fine, but the avatar is not showing up and I get the following run-time error...bax wrote:Yes. We used the SWC as we need external graphical assets, built with Flash. But if you have a pure actionscript avatar class, there's no need you create an swc. In your main application class simply create a variable pointing at your class (ie: var avatar:MyCustomAvatarClass), so that the compiler includes it in the compiled application SWF. At runtime the class will be available in the default application domain, and OpenSpace will be able to get a reference to it and instantiate it.warhell wrote:Is there a way to avoid using the Flash authoring tool (Flash CS4) to create the avatar SWC? I'm creating avatars by loading a 3D image via Papervision, so I really have no need to use CS3, all I use is .as classes. Is there a way to generate the SWC at run-time when I compile my Flex project? Is it possibly to bypass using a SWC and just pass in the .as class to OpenSpace?
Code: Select all
<AvatarTypes use8Directions="1">
<!--AvatarType mainClass="DemoAvatar" ghostClass="DemoGhost" stature="55">demo</AvatarType-->
<AvatarType mainClass="DemoAvatar" stature="55">demo</AvatarType>
</AvatarTypes
The DemoAvatar class has no package? If yes, you have to enter the full package and class name, for example: com.mypackage.avatara.DemoAvatarwarhell wrote:Yes, The name of the file is "DemoAvatar.as", and I have the following line in the config file...
It seems like openspace cannot find the class in the application domain.Code: Select all
<AvatarTypes use8Directions="1"> <!--AvatarType mainClass="DemoAvatar" ghostClass="DemoGhost" stature="55">demo</AvatarType--> <AvatarType mainClass="DemoAvatar" stature="55">demo</AvatarType> </AvatarTypes
http://forums.smartfoxserver.com/viewtopic.php?t=7094sidigrid wrote:Hi Bax,
I have been trying to replicate getting avatar into the flash example provided. I used the avatar class files and avatar swf from the flex example. But i was not able to do it successfully.
I was able to succeed in one case:
1. Copied both DemoAvatar.as and DemoGhost.as files to the directory where main flash file exists.
2. Copied the avatar movie clips from DemoAvatarContainer file to library of OsExampleFlash file
This way i was able to render avatar but i would like to achieve it without putting the movie clips into main file library.
Any pointers would be of great help..
Thanx a lot for the great engine guys..You rock..