Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JettyCat example broken #198

Closed
2 tasks done
SilverSight1 opened this issue Jun 17, 2020 · 4 comments
Closed
2 tasks done

JettyCat example broken #198

SilverSight1 opened this issue Jun 17, 2020 · 4 comments
Labels
scope:module This issue describes a functionality that is implemented (or should be) in a module type:bug Something isn't working

Comments

@SilverSight1
Copy link

SilverSight1 commented Jun 17, 2020

TODO

  • Fix ct.tween
  • Update the tutorial

Hi. I've been following the tutorial included inside of ct.js, and in the polishing JettyCat section, we make the rooms UI_Paused, and UI_OhNo fade in from 0 alpha. UI_OhNo works as intended, but UI_Paused doesn't show any UI (the continue button still works though).

To Reproduce

add

this.alpha = 0;

ct.tween.add({
obj:this,
fields:{
alpha:1
},
duration:500
});


under the On Create for room UI_Paused.

Expected behavior
Room UI_Paused should fade in exactly the same way UI_OhNo does.

Versions:

  • OS: Manjaro Linux 20.0.2
  • ct.js version 1.3.1
@SilverSight1 SilverSight1 added the type:bug Something isn't working label Jun 17, 2020
@CosmoMyzrailGorynych
Copy link
Collaborator

Honestly, the issue sounds invalid; could you send your project so I can reproduce it 100% and find the problem?

@SilverSight1
Copy link
Author

cattyJetpractice.zip

@SilverSight1
Copy link
Author

I'm having the same problem with the finished example provided under ctjs > examples > JettyCat.ict

@CosmoMyzrailGorynych CosmoMyzrailGorynych added scope:module This issue describes a functionality that is implemented (or should be) in a module state:current release labels Jun 17, 2020
@CosmoMyzrailGorynych
Copy link
Collaborator

Indeed, there is a bug in ct.tween that prevents using UI time. The API used in the tutorial is also a bit dated. I've located the issue and will fix it in the next release. Right now, download my current version of ct.tween and replace yours with it:

tween.zip

You will also need to add useUiDelta: true to those ct.tween.add calls that are for UI elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:module This issue describes a functionality that is implemented (or should be) in a module type:bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants