Author Topic: MODULE: TWEEN 2.1.0 with AGS 3.4.0 support!  (Read 15426 times)

Re: MODULE: TWEEN 2! (2.0.2)
« Reply #20 on: 24 Apr 2016, 15:37 »
Yes, that was the problem. It's working now. This module is awesome! :)
Thanks again and sorry for my clumsiness.

Edmundito

  • Mittens Serf
    • Best Innovation Award Winner 2014, for 'Tween Module'
    •  
    • I can help with scripting
    •  
    • Edmundito worked on a game that was nominated for an AGS Award!
Re: MODULE: TWEEN 2! (2.0.2)
« Reply #21 on: 30 Apr 2016, 18:00 »
I have the Smooth Scrolling & Parallax module and a global variable named "max".
So, maybe this is the problem. If I rename the max global variable it probably will work. I'll try it tomorrow and report the results.

Thanks for the help!

daneeca, Were you able to test this?
Start using the Tween 2 Module!

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: MODULE: TWEEN 2! (2.0.2)
« Reply #22 on: 02 May 2016, 01:00 »
Edmundito, daneeca just replied 1 post above:

Yes, that was the problem. It's working now. This module is awesome! :)
Thanks again and sorry for my clumsiness.

Apparently there was simply a global variable of that name.

Edmundito

  • Mittens Serf
    • Best Innovation Award Winner 2014, for 'Tween Module'
    •  
    • I can help with scripting
    •  
    • Edmundito worked on a game that was nominated for an AGS Award!
Re: MODULE: TWEEN 2! (2.0.2)
« Reply #23 on: 08 May 2016, 18:24 »
Edmundito, daneeca just replied 1 post above:

Yes, that was the problem. It's working now. This module is awesome! :)
Thanks again and sorry for my clumsiness.

Apparently there was simply a global variable of that name.

Oooh, totally missed that Page 2!
Start using the Tween 2 Module!

Amayirot Akago

  • AGS aficionado.
Re: MODULE: TWEEN 2! (2.0.2)
« Reply #24 on: 05 Jun 2016, 14:45 »
For a beginning AGS'er like myself, this module is a life-saver :D
Quote from: CaptainD
My suspicion is that an accident, probably caused by a lightning storm and a mad professor, resulted in Amayirot's brain becoming inextricably linked to the databases behind MobyGames and LemonAmiga.

Stupot

    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: MODULE: TWEEN 2! (2.0.2)
« Reply #25 on: 06 Jun 2016, 08:46 »
Just a thought. Sorry if this has already been suggested (or even done?) but has anyone thought about integrating SSH's credits module with the Tween module? I've noticed a few games lately with lovely smooth things happening on screen but then a really (relatively) jerky final credits.

Edmundito

  • Mittens Serf
    • Best Innovation Award Winner 2014, for 'Tween Module'
    •  
    • I can help with scripting
    •  
    • Edmundito worked on a game that was nominated for an AGS Award!
Re: MODULE: TWEEN 2! (2.0.2)
« Reply #26 on: 03 Sep 2016, 00:22 »
Need help? I started a chat room on Discord:
https://discord.gg/vmuCyWX

(also updated the main post with the chat link.)
Start using the Tween 2 Module!

Re: MODULE: TWEEN 2! (2.0.2)
« Reply #27 on: 23 Nov 2016, 14:33 »
Hi, this is absolutely great module with endless count of useful applications! Hovewer, I have a problem with one type of tween, TweenViewport. For some reason, I can't get it to work as I need. This is the code:
Code: Adventure Game Studio
  1.      Display("Viewport: %d,%d", GetViewportX(), GetViewportY());
  2.      mc_x = character[i_start].x-System.ViewportWidth/2;
  3.      mc_y = character[i_start].y-System.ViewportHeight/2;
  4.      TweenViewport(20.0, mc_x, mc_y, eEaseOutSineTween, eBlockTween, 0.0, eTweenSpeed);
  5.      //SetViewport(mc_x, mc_y);
  6.      Display("Move x,y: %d,%d[Viewport: %d,%d", mc_x, mc_y, GetViewportX(), GetViewportY());
  7.  
It should move the camera so that the character with ID i_start is in the centre of viewport. However, it moves the Viewport in completely different direction. In my test, ViewportX;Y is 680;320 at start, 60;60 at end. Variables mc_x;y are 480;60 - I don't see any simple way how to make a vector out of these variables.
This code runs exactly as it should be:
Code: Adventure Game Studio
  1.      Display("Viewport: %d,%d", GetViewportX(), GetViewportY());
  2.      SetViewport(mc_x, mc_y);
  3.      Display("Move x,y: %d,%d[Viewport: %d,%d", mc_x, mc_y, GetViewportX(), GetViewportY());
  4.  
ViewportX;Y is 680;320 at start, 480;60 at end. Variables mc_x;y 480;60.

Edmundito

  • Mittens Serf
    • Best Innovation Award Winner 2014, for 'Tween Module'
    •  
    • I can help with scripting
    •  
    • Edmundito worked on a game that was nominated for an AGS Award!
Re: MODULE: TWEEN 2! (2.0.2)
« Reply #28 on: 23 Nov 2016, 18:17 »
Hi .M.M, thanks for posting. You're right, there is a bug with TweenViewport in 2.0.x and I should have released a patch sooner.

Basically, it's Tweening the X part of the viewport with the Y value. In the meantime, you can open the Tween.asc file and find the line:

Code: Adventure Game Studio
  1. else if (this.Type == _eTweenViewport) {

And then modify the next lines to look correct. Here is the change that I made that has not been released:

https://github.com/edmundito/ags-tween/commit/99c36adc60f10a793c49115467ee088de514791e?diff=split

If you're not familiar with Github, red means old, and Green means new, the stronger highlights within the lines indicate exactly what I changed.
« Last Edit: 23 Nov 2016, 18:20 by Edmundito »
Start using the Tween 2 Module!

Edmundito

  • Mittens Serf
    • Best Innovation Award Winner 2014, for 'Tween Module'
    •  
    • I can help with scripting
    •  
    • Edmundito worked on a game that was nominated for an AGS Award!
Re: MODULE: TWEEN 2.1.0 with AGS 3.4.0 support!
« Reply #29 on: 05 Dec 2016, 00:36 »
Hey everyone, thanks for all the feedback! I finally got around to supporting many features found in 3.3.0 and 3.4.0. This is the first major release since the release of 2.0.0!

More details can be round in the release notes:
https://github.com/edmundito/ags-tween/releases/tag/v2.1.0

And yeah, it fixes the TweenViewport bug!
Start using the Tween 2 Module!

Amayirot Akago

  • AGS aficionado.
Re: MODULE: TWEEN 2.1.0 with AGS 3.4.0 support!
« Reply #30 on: 08 Dec 2016, 09:01 »
Yaaaaay! :D This is sure to come in handy if and when I ever get around to making another AGS game!
Quote from: CaptainD
My suspicion is that an accident, probably caused by a lightning storm and a mad professor, resulted in Amayirot's brain becoming inextricably linked to the databases behind MobyGames and LemonAmiga.

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: MODULE: TWEEN 2.1.0 with AGS 3.4.0 support!
« Reply #31 on: 08 Dec 2016, 16:16 »
I found this demo that may be used to visualize object tweening across 2d plane: http://gizma.com/easing

Re: MODULE: TWEEN 2.1.0 with AGS 3.4.0 support!
« Reply #32 on: 11 Dec 2016, 11:12 »
Thank you for the reply, fix and the whole TWEEN module! :)

Danvzare

  • The Man with No Name
    • I can help with AGS tutoring
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: MODULE: TWEEN 2.1.0 with AGS 3.4.0 support!
« Reply #33 on: 12 Dec 2016, 12:01 »
Thank you for the reply, fix and the whole TWEEN module! :)
Same here. Thanks so very much for the TWEEN module as a whole.
It's definitely one of the best modules for AGS, and a real life saver. :-D

Re: MODULE: TWEEN 2.1.0 with AGS 3.4.0 support!
« Reply #34 on: 17 Dec 2017, 15:02 »
Hey! I am trying to understand Custom Tweens. I have a int variable that I want to tween. The code below is pseudo-code to explain this idea. How to do this?

Code: Adventure Game Studio
  1. int aVariable;
  2.  
  3. game_start(){
  4.   aVariable = 10;
  5. }
  6.  
  7. void something(){
  8.   aVariable.Tween(1.5, 70, eEaseLinearTween, eNoBlockTween);
  9. }