• Home
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Godot Community

Godot Community

TW : Easy tween Plugin (4.0 +)

Scheduled Pinned Locked Moved Tutorials & Guides
tweenplugingodot 4resource
1 Posts 1 Posters 74 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • verdictedundefined Offline
    verdictedundefined Offline
    verdicted _init()
    wrote on last edited by verdicted
    #1

    GitHub:
    https://github.com/extremesphere/tw
    https://github.com/extremesphere/tw

    Asset page:
    https://godotengine.org/asset-library/asset/2227
    https://godotengine.org/asset-library/asset/2227

    tw

    Easy tween

    Default parameters:

    tw.tw(
    	node = null, #required
    	time = 0.1, #required
    	property_dict = {}, #required
    	easing_style = 'linear',
    	easing_direction = 'out', 	
    	delay = null
    )
    

    Configuration:

    tw.set_default_time(1.0)
    
    #tw.set_default_easing(style := '', direction := '')
    tw.set_default_easing('quint')
    tw.set_default_easing('quint', 'out')
    

    Usage:

    tw.set_default_time(1.0)
    tw.set_default_easing('quint')
    
    
    tw.tw(self, 1.0, {modulate = Color.RED})
    tw.tw($Node, 1.0, {modulate = Color.RED, rotation = 360}, 'quint', 'out')
    tw.tw(self, 1.0, {modulate = Color.RED, "position:x" = 20}, 'QuiNT', 'OuT')
    tw.tw(self, 1.0, {modulate = Color.RED}, 'quint', 'in')
    tw.tw(self, 1.0, {modulate = Color.RED}, 'elastic', 'out')
    tw.tw(self, 1.0, {modulate = Color.RED}, 'elastic')
    
    tw.tw(self, 0.0, {modulate = Color.RED}, 'elastic')
    #equivalent to      "self.modulate = Color.RED"
    
    tw.tw(self, -2.0, {modulate = Color.RED}, 'elastic')
    #equivalent to      "self.modulate = Color.RED"
    
    
    1 Reply Last reply
    2

© 2023 Godot Community
Privacy - Terms - Contact

  • Login

  • Don't have an account? Register

Powered by Godot Community
  • First post
    Last post
0
  • Home
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login

  • Don't have an account? Register