Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: jclampy69 on October 16, 2020, 04:47:07 PM

Title: Calling an external nut
Post by: jclampy69 on October 16, 2020, 04:47:07 PM
Hopefully this is a quick one to solve.. What am I missing?

local metabox = fe.add_surface(574, 100);
local metadata = metabox.do_nut("scripts/metadata.nut");
metabox.x= 1320
metabox.y= 365

My end goal is I was thinking of adding a delay or animation to all my metadata fields in one go.. But if that's not possible then I will just code it individually.
Title: Re: Calling an external nut
Post by: keilmillerjr on October 17, 2020, 05:02:07 AM
do_nut() is not a method. It's a function. Do not daisy chain it to an object.
Title: Re: Calling an external nut
Post by: jclampy69 on October 17, 2020, 06:29:24 PM
Is it possible to call text based 'magic tokens' as individual separate objects that are then grouped to a single surface. And then manipulate that surface with an animation?