GameEngine2D

Reply

Member

Member
YMM315
Posts: 3
Registered: ‎21-05-2012
Message 1 of 2 (101 Views)

Using ActionTweenGeneric

[ Edited ]

Hey, first off thanks for this cool API :smileyhappy: Mono C# is awesome for indie game dev.

 

I've noticed that, oddly, ActionTweenGeneric is an abstract class, so we can't instantiate it directly. Is this intentional? It seems strange to have to extend it myself if I want to use it (and the built-in  subclasses all deal with Vectors, when I just want to tween a simple float).

Please use plain text.

Re: Using ActionTweenGeneric

Hi YMM315,

 

Yes, this is intentional.

 

The ActionTweenGeneric class does not implement the lerp (linear interpolation) method because the implementation is left down the the specific ActionTweenGeneric* classes, which all perform different actions and function is different ways. 

 

To tween a float between two values, you will have to extend the ActionTweenGeneric<T> and then implement the lerp(dt) method to tween the value. Let us know if you need any help.

 

Thanks,

James

PlayStation®Mobile Dev Team
Please use plain text.
Announcements

Welcome to the PlayStation Mobile Developer Forums


This is a community for the discussion of technical topics with other developers and SCE engineers. Posting ideas/requests are also appreciated. Join the discussion!

PlayStation®Mobile開発者フォーラムでは世界中の開発者の皆様と一緒に、議論や情報交換が可能です。SCEも議論に参加し、皆様の開発をサポートします。アイデアやリクエストも大歓迎です。ぜひご参加ください。

PSM Developer Registration (for free) on PSM DevPortal is required to post on the forum.
Please sign out then sign in again to the forum and PSM DevPortal after you have completed the registration.

フォーラムへ投稿をするにはPSM DevPortalへの登録(無料)が必要です。
登録後はフォーラムと PSM DevPortalを一度ログアウトし、再度ログインしてください。