- Home /
Some scripts don't work when compiling to flash, work fine in editor
I have some weird problems with the flash export. First of all, my character jumps every time he hits a step. I even hame jumping disabled, and when my character touches a stair or a short obstacle he jumps high.
I have a script for a button activated sliding door. It works fine on every other platform export, but on flash nothing happens.
Finallly, i have a moving platform object. It is not a rigidbody and it works fine in the editor or in the standalone export but not in flash : the platform is moving, the player stands on it, but when the platform moves the player doesn't follow it and finally he falls down.
I don't think i should spend my time trying to make something with this version of unity flash, if i can't trust that whatever works in the editor or in other platform exports, will work in flash too. Any help is appreciated, thanks!
Answer by Hendrys · Dec 27, 2011 at 02:26 PM
I think i can help with the button-door issue. I think it is maybe because you are using OnMouseDown for the button pressing. Something similar happened to me and it was because OnouseDown doesnn't work with Flash.
Thanks for your time mate, but actually it is a button that only works with a collider. It is actually a button on the floor, so when i step on it it should work. It is a simple script and i don't understand why it is ignored...
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
flash animation scene to unity 2 Answers
Will Smartfox/PlayerIO on Unity Flash be supported? 2 Answers
Image suddenly flash on screen when triggered? 0 Answers
Fps Aiming Script help 2 Answers