It's possible back to back quad position animation with visual logic?

Hello everyone,

It’s possible back to back quad position animation with visual logic?

For example, If I have a text Boundingbox.Right visual logic control quad position, when I type in 10 words and take it online will move quad Position.X from 0 to 100, and second same scene type in 6 words take it online I want quad move from 100 to 60, it’s possible?

You can do most of it with visual logic but one thing you can’t do is get a value from another scene.

You need to read the value from the online scene and compare it to your current one then calculate the delta to multiply a null object usually animated between 0 and 1 to the property you want to see visually animate.

Scripting and or data pages are the only methods I can think of that can communicate between scenes that I can think of.

If you are OK with trying some scripting I can probably help you.

Thank you Simon!

I dont’t really know about scripting thing, but I willing spending time learn how to get there.

thanks again!

When I get a moment I’ll find you an example project.

Hi all!
Faber look the attached project

Nice one @Roman Yaroshenko

Here’s my take on it, used Visual Logic and a bit less scripting but there is still scripting needed.

Thank you @Roman Yaroshenko

That’s look so cool! can you explain a little bit how it works?

Thanks again!

Thank you @Simon Redmile

That’s more than I wanted to do. Maybe it’s good for the election.

can you explain a little bit how it works?

Thanks again!

It has two engines. One of them sets in a Scene Scripts Events OnBeforOnLine

Dim output As xpOutputFrameBuffer
Dim onlinescene As xpScene
Dim onlineodj, hide As xpBaseObject
Dim PlayOn As Boolean = True
self.GetObjectByName(“HideObj”, hide) 'get a hidden object from this scene

engine.GetOutputFrameBuffer(FramebufferIndex, output) 'gets the framebuffer of this scene
If output.GetSceneOnLayer(Layer, onlinescene) Then 'checking if any takeitem is online on a layer of this scene
If onlinescene.Name = self.Name Then 'checking if the name of the online takeitem matches the name of this scene
onlinescene.GetObjectByName(“Quad1”, onlineodj) 'gets the moving quad from the takeitem of the online scene
hide.PosX = onlineodj.PosX 'sets position X of the hidden object as position X of the moving quad in the online takeitem of this scene
PlayOn = False
End If
End If

If PlayOn Then
hide.PosX = 0 'if no takeitem of this scene is online it sets position x 0 for the hidden object
End If
And the over is a Visual Logic