Author Topic: Not update game snap after applying Animation  (Read 6844 times)

kent79

  • Hero Member
  • *****
  • Posts: 862
    • View Profile
Not update game snap after applying Animation
« on: November 12, 2016, 05:43:42 PM »
Code: [Select]
//Game List Animation
::OBJECTS <- {
snap = fe.add_artwork("snap",flx*0.504, fly*0.104, flw*0.447, flh*0.614 ),
}

 local movein_snap = {
   property = "x", start = flx*3, end = flx*0.504, time = 560
}

animation.add( PropertyAnimation( OBJECTS.snap, movein_snap) );

Hi All,

I would like add animation for snap. The animation is work. But the snap video can't update while changing the game. Anyone know how to fix it? Thanks.

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Not update game snap after applying Animation
« Reply #1 on: November 13, 2016, 07:51:57 AM »
here ya go boss...


::OBJECTS <- {
snap = fe.add_artwork("snap",flx*0.1200, fly*0.104, flw*0.447, flh*0.614 ),
}

local pacman = {
       
   when = Transition.ToNewSelection ,
   property = "x",
   start = 1500,
   end = 680,
   time = 500,    
   loop = 2,
 }

animation.add( PropertyAnimation( OBJECTS.snap, pacman ) );




cant wait to see what your doing!
help a friend....

kent79

  • Hero Member
  • *****
  • Posts: 862
    • View Profile
Re: Not update game snap after applying Animation
« Reply #2 on: November 13, 2016, 04:33:27 PM »
I find the way to solve the issue. Anyway, Thank you.  :)

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Not update game snap after applying Animation
« Reply #3 on: November 13, 2016, 05:24:45 PM »
would you please share so i can use,,   if there is a better way to do it... thank's

my way seems that it is just working by chance...dont know why it dont work like the other script for "png"?

help a friend....

kent79

  • Hero Member
  • *****
  • Posts: 862
    • View Profile
Re: Not update game snap after applying Animation
« Reply #4 on: November 14, 2016, 10:17:24 PM »
would you please share so i can use,,   if there is a better way to do it... thank's

my way seems that it is just working by chance...dont know why it dont work like the other script for "png"?

My way is also not confirmed. I need more time for testing . I will share it once test completed.   

The issue seems a bugs for AM
« Last Edit: November 14, 2016, 10:44:38 PM by kent79 »

liquid8d

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 442
    • View Profile
Re: Not update game snap after applying Animation
« Reply #5 on: November 29, 2016, 05:47:00 PM »
hey guys! Sorry I haven't been around much, but I will be back working on stuff soon :)

I'm not sure what you are saying the issue is... is the issue that videos don't update, only images? I'd have to do a little testing...

As mentioned, you can use FromOldSelection or ToNewSelection transitions. Sometimes using a delay can help you solve issues like what I think may be happening. You can also add wait = true to make it a "waiting" animation, meaning nothing will happen until the animation completes. That's not recommended though as it prevents any input while the animation plays.