Jump to content



Photo
- - - - -

Animation not running when called.


  • Please log in to reply
2 replies to this topic

#1 BorgDog

BorgDog

    We come in peace.. shoot to kill.. shoot to kill.

  • Members
  • PipPipPipPip
  • 1,427 posts
  • Location:Leavenworth, WA

  • Flag: United States of America

  • Favorite Pinball: Alien Star, TNA



Posted 02 July 2015 - 05:30 PM

I'm working on my first backglass, kind of fun and frustration at the same time.  my current issue is that my animation does not run when called.  the animation works in the test in the designer, and if I check the box for "Start animation at backglass startup" it does play at the start of the game.  

 

My code in the table script is Controller.B2sStartAnimation Startup  Startup being the name of the animation, but also tried with different animations.

 

Any ideas what I am missing?  tried this with both VPX and VP9.9 and has same behavior. (actually making my first table in VPX beta to go with it, reskin actually).

 

Thanks,

 

Dan

 



#2 allknowing2012

allknowing2012

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,948 posts
  • Location:Waterloo, ON

  • Flag: Canada

  • Favorite Pinball: bucaneer

Contributor

Posted 02 July 2015 - 06:35 PM

Comparing to what I see in Rush .. here is the exact code that is there.. perhaps the trick is the set data 0,1 ? or quotes?

 

' new B2S stuff ************************************************
 
Controller.B2SSetData 1, 0
Controller.B2SStartAnimation "RUSH"
 
' **************************************************************

 

' new B2S stuff ************************************************
 
Controller.B2SStopAnimation "RUSH"
Controller.B2SSetData 1, 1
 
' **************************************************************

* I don't know everything - I just have no life *
testimageNL

 

 

 

#3 BorgDog

BorgDog

    We come in peace.. shoot to kill.. shoot to kill.

  • Members
  • PipPipPipPip
  • 1,427 posts
  • Location:Leavenworth, WA

  • Flag: United States of America

  • Favorite Pinball: Alien Star, TNA



Posted 02 July 2015 - 08:09 PM

DOH!  yeah, I'm an idiot.  yes of course it needs quotes around the string name.  That fixed it for me, thanks allknowing