vivek
New Member
Posts: 17
|
Post by vivek on Jun 21, 2013 5:47:41 GMT
Hi, i have created 6 scene animation but after export it to HTML, it plays only scene one animation and stops. it doesn't go to next scene
|
|
|
Post by Hippani on Jun 21, 2013 7:22:04 GMT
Hi, are you using the latest version? Are your other scenes more than 1 frame long? What web browser is it not working on? Can you send us your .hani project file? (info@HippoStudios.co)
I'm sure we can fix this problem for you.
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jun 21, 2013 7:34:39 GMT
Hi,
Thanks For reply,
i am using 2.6.4885 version, all scene has more then 100 frames. checked it on FF/Chrome/IE but not working in any browser.
sending you original file...
|
|
|
Post by Hippani on Jun 22, 2013 6:03:31 GMT
Ok, remove the PlayClip function and turn on Auto Play. Play clip stops at the end. We've also update Hippo Animator to show that this should have stopped in the player as well.
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jun 24, 2013 14:53:36 GMT
Hi,
i have turned on the Auto Play, but user interaction is missing now, animation is not stopping/pausing at given frame or button , it play complete movie at a time ?
also if i remove PlayClip Function, then animation doesn't redirect to next scene?
|
|
|
Post by Hippani on Jun 24, 2013 15:50:09 GMT
Ah right, so you want to play scene 1 then some of scene 2.. for example?
Add something like this to Movie -> On Update
var CurrentFrame=GetFrame(); var CurrentScene=GetSceneName();
if(CurrentScene=="Scene2"){ if(CurrentFrame==20){ Stop(); } }
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jun 27, 2013 6:35:46 GMT
Hi,
i have kept this code to On update , but now player shows "Error : The variable 'GetFrame' could not be found" and after exporting it to HTML , it shows nothing.
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jun 27, 2013 6:40:11 GMT
it is 6 scene animation and i want to play it one by one.In each scene's last frame i have kept the PlayClip & GoToScene Function to redirect to next scene. it working fine in player but not in HTML
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jun 27, 2013 7:04:44 GMT
Hi, i have removed first scene and added it's animation to second scene, it's working fine now. Thanks for you time also i want to load random images instead of particular image in between the scene (right now i have added a image from library)and want to save it's value in numbers , how can i do that ?
|
|
|
Post by Hippani on Jun 27, 2013 9:28:33 GMT
Use the image sequence, turn off auto play for the sequence, add some images then use script to set the image index using Math.random.
var NumberOfImages=5; //The number of images in the sequence var RandomIndex=1+Math.floor(Math.random()*NumberOfImages); OpenImageSequenceIndex("MySequenceName",RandomIndex);
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jun 27, 2013 14:29:50 GMT
is it possible to give some static number values (10, 20, 50 etc.) to particular image and save it to cookies for later ??
|
|
|
Post by Hippani on Jun 27, 2013 15:07:45 GMT
Sounds like something that might be possible, but I'm not sure what you mean or what you're trying to do.
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jun 28, 2013 11:39:38 GMT
Basically in each scene i am loading 3 random images but one image at a time so the scenario is like
Scene1 + Scene2 + Scene3 + Scene4 + Scene5 ---------> No of Scene in Movie image2 image2 image1 image3 image1 ---------> Random images 100 200 300 150
now i want to give a static numbers to all images ( image1=100, image2=150 so on) and after end of the movie i want to calculate the images value.
how can i store these value as images are loading randomly and how to calculate the value at end ?
|
|
|
Post by Hippani on Jun 28, 2013 12:44:23 GMT
wow, I'm totally confused now. But, I suggest the image sequence or the image viewer objects like before. Just create a new variable in General script. var Total=0; And use that to calculate your totals.
|
|
vivek
New Member
Posts: 17
|
Post by vivek on Jun 28, 2013 13:56:08 GMT
Thanks for quick response...
say an example, i have a loading truck moving from form-field to Port. there are many obstacle during the journey. so the time and cost increase or differ as per situation. i have taken 5 different images for each situation. at the end of the animation i want to calculate total time and cost.
i have fixed the day and cost. but how to store the value as images are loading randomly and calculate the total cost and time of the journey...
|
|