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!

more ▼

asked Dec 27, 2011 at 11:59 AM

avatar image

1 9 6 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Dec 27, 2011 at 02:26 PM

avatar image

139 23 18 23

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...

Dec 27, 2011 at 02:41 PM Nashuark
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Dec 27, 2011 at 11:59 AM

Seen: 1108 times

Last Updated: Dec 27, 2011 at 02:41 PM