Click to See Complete Forum and Search --> : Problems with exporting (to .swf)
white_queen
04-06-2003, 01:17 PM
I am using 3DFA v. 3.72 to make a game. In the game, I have two moving elements - one controlled by the user, one which is started by the user pressing a key (up arrow) and then it moves independently and randomly. When exported and viewed in the browser, the independly moving element does not move when the key is pressed, or indeed at all. I also have a collision detect set up between the user-controlled element and the independent element, which works fine in 3DFA, but in the broswer this doesn't work either.
Does anyone know how I can fix this or what is causing it?
~Milli
Twisted Mind
04-06-2003, 02:08 PM
You need to post the .movie or some of the code... Hve no idea
ForumNewbie
04-06-2003, 02:47 PM
Hi,
I've had problems with collision detection in the browser too, although it works fine in 3dfa.
ie. In v4 beta 2, sometimes collisions are detected when there aren't really any, and sometimes they aren't detected when there is one. I am still investigating, but so far, I think it's related to 'friction' on the element.
I've just reported it to 'support', and I'll post a reply if I get an answer.
I never really tested this in v3.72 though, so it may be unrelated.
Does the problem element in your example have the 'friction' property set?
Morgan.
white_queen
04-06-2003, 04:26 PM
Here's the 3DFA 3.72 .movie file and the exported .swf. Please not that the game is not finished - but the bits I have a problem with are in there...
Files enclosed:
calico2.movie
calico_exported.swf
calico_exported.html
Hope someone can figure it out!
~Milli
P.S. Morgan - no I don't have nay "friction" settings.
ForumNewbie
04-06-2003, 05:45 PM
Hi,
I tried to open the file, but it just crashes my 3dfa (Version 3.72 and 4)
Does the game use any linked images, textures, sounds etc ?
If so, can you add these to the zip file?
Ta,
Morgan.
white_queen
04-07-2003, 01:13 PM
I'm not sure about linked images - would I need to include all my original .pngs and .gifs which I imported into 3DFA?
~Milli
ForumNewbie
04-07-2003, 04:36 PM
I'm not entirely sure what is and isn't required, but I think the gif's and png's are required.
Anyone else know for sure?
white_queen
04-07-2003, 05:01 PM
*thinks* well, yesterday I uploaded a Flash game with about 10 .pngs to a site...and none of them seemed to need uploading as well for the game to work.
~Milli
Twisted Mind
04-07-2003, 06:02 PM
Originally posted by white_queen
*thinks* well, yesterday I uploaded a Flash game with about 10 .pngs to a site...and none of them seemed to need uploading as well for the game to work.
~Milli
When you export to flash, all your files come with the swf file, if you don't have any external MP3:s. When tou upload a movie source, you have to send with the pictures. But when v.4 releases, we will be able to attach the files to the .movie file.
Joel
white_queen
04-08-2003, 01:08 PM
Thankyou for clarifying, Twisted Mind :-)
Here is the .zip which contains all the images.
~ Milli
ForumNewbie
04-08-2003, 02:33 PM
Sorry Mllli,
Still crashes my 3dfa (Both v3.72 and 4 beta 2). I'll have to leave it to an expert.
Shame - Because it sounded like the same problem I've been having.
Morgan.
ForumNewbie
04-10-2003, 04:15 AM
OK, I still can't open the file, but I am sure about my problem now, so this might help you prove where your problem lies :
As a test, remove all reference to properties like acceleration and relative_acceleration and velocity from the cat. These probably act like the friction in my example, and could be the root of the problem.
Add an action script that simply places the cat at the mouse coordinates.
ie.
cat.x=mouseX();
cat.y=mouseY{};
See whether the collision detection works without those properties set for the element. If so, then the problem is pretty much the same as mine, and you'll need to drop a mail to 'support@3dfa.com'.
Hope this helps,
Morgan.
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.