Iavra Animate Everything (+ Easing Library)

@Ossra
@Skurge You can use the plugin for essentially everything ... pictures, events, and so on. Like so :


unknown-map-birbs.gif





​
Hello, the picture is invalid, may I ask what are the properties for the event .
My English is poor, thanks.
@mulier

7rxx2Zg.gif

  • Bird 1 Event
    • Page 1
      • Move Route (Custom)
Code:
◆ Turn at Random
◆ Script : var px = $gamePlayer._x; var py = $gamePlayer._y; ($gameMap.event(1)._x.between(px - 8, px + 8) && $gameMap.event(1)._y.between(py - 5, py + 5)) ? $gameSelfSwitches.setValue([2,16,'A'], true) : (rndTime = Math.floor(Math.random() * (45 - 25 + 1)) + 25, this._waitCount = rndTime)

  • Bird 1 Event
    • Page 2
      • Parallel Event
      • When Self-Switch A is On)
Code:
◆Set Movement Route:This Event (Wait)
:                  :◇Turn Right
◆Script:object = $gameMap.event(1);
:      :mapX = $dataMap.width + 10;
:      :mapY = -5;
:      :var avianTween = new IAVRA.ANIMATE.Tween(object, {_realX : mapX, _realY : mapY}).duration(85);
:      :avianTween.easing(IAVRA.EASING.circ.in);
:      :avianTween.start();
:      :this.wait(95);
◆Control Self Switch:A = OFF
◆Erase Event
@Ossra Thank you very much! It was very useful to me!
What am I doing wrong? 🙁
Code:
◆Set Movement Route:This Event (Wait)
:                  :◇Turn Right
◆Script:object = $gameMap.event(1);
:      :mapX = $dataMap.width + 10;
:      :mapY = -5;
:      :var avianTween = new IAVRA.ANIMATE.Tween(object, {_realX : mapX, _realY : mapY}).duration(85);
:      :avianTween.easing(IAVRA.EASING.circ.in);
:      :avianTween.start();
:      :this.wait(95);
◆Control Self Switch:A = OFF
◆Erase Event

@Ossra

Can't find the function between. Did you create it? I'm trying using chrome's console via F8. When i search $gameMap.event(1)._x.between(...) it shows 'undefined'

EDIT: Also, do you know if it's possible to trigger an event by touch while it's performing the route animation? I tried here, but it seems the event must complete its animation before it can be triggered again.

@Roezaka

You don't need to put $gameScreen.picture(1) after calling your picture. Use the following inside a script call and see if you still get an error:

new IAVRA.ANIMATE.Tween($gameScreen.picture(1), {_x: 50, _y: 100}).duration(200).start()
Not sure if I'm still allowed to post on this thread, but I have a question: how do I delay the start of a tween? I have 3 pics that I want to tween at different intervals, so would be helpful if I could use the delay method, but I don't really understand how. Here is my existing code:


Code:
var intPicId =  200; var strPicName = $gameVariables.value(717); var intPicX1 = $gameVariables.value(741); var intPicY1 = $gameVariables.value(742); var intPicSizePct1 = $gameVariables.value(743); var intOpacity = 255;
new IAVRA.ANIMATE.Tween($gameScreen.picture(intPicId), {_scaleX: intPicSizePct1, _scaleY: intPicSizePct1, _x: intPicX1, _y: intPicY1, _opacity: intOpacity}).easing(IAVRA.EASING.quad.in).duration(30).start();

So how would i add a delayed start of say 5 frames to it?
I am trying to see if this plugin works in MZ by using FOSSIL. However, my knowledge of JavaScript is still so minimal that I am unsure if my difficulty is because of poor syntax/some missing instruction or whether it is because it won't work properly in MZ.

I am trying to get the opacity of a picture (picture 1) to change from 0 to 155 over 80 frames. However, it seems to be instantaneous. I have tried increasing the duration to 300 frames, but it still does it. My script call is:

Code:
new IAVRA.ANIMATE.Tween($gameScreen.picture(1), {_x : 155}).duration(80).start()

Could someone advise me what I should be doing?

Thanks.


Thank you.
Bump
Does anyone know of a way to rotate pictures with this?

Thanks!
Hello! I'm not expecting a response here given how old this plugin is, but does anyone know how to use this plugin for battle windows? Do they count as objects that can be tweened using this library?

I tried figuring it out myself. I have a plugin to use common events in battles, so that's how I'm pushing this script command through. I'm trying to tween the skillWindow in battles:

new IAVRA.ANIMATE.Tween(SceneManager._scene._skillWindow, {_x: 50, _y: 100}).duration(200).start()
It doesn't wanna do anything. Did I mess up the syntax?

Original thread: https://forums.rpgmakerweb.com/threads/iavra-animate-everything-easing-library.46826/