Hey, David!
I believe you meant this for Scribble. I know, because I came across the same issue in Scribble. 😀
You'll want to contact Juju Adams about that one. :)
Take care!
Hey, David!
I believe you meant this for Scribble. I know, because I came across the same issue in Scribble. 😀
You'll want to contact Juju Adams about that one. :)
Take care!
Thanks for reporting this!
This error only seems to happen when calling an Easy Tween at the VERY START of the game.
You can get around this by delaying the call by one step, or you could modify TweenEasyScale (and other easy scripts).
You would need to change:
if (!instance_exists(o_SharedTweener)) SharedTweener();
to :
SharedTweener();
I'll aim to include this change in the next beta release. I'm aiming for one this weekend.
-Stephen
Hmm. That is odd. Is this happening for the VM and YYC? Are you on Windows or Mac? Did you add TweenGMS to an existing project or an empty project?
Testing here on 2.3.3.437 I am not seeing the same error.
It is safe to comment out that line if it stops the error. I'll check things on my end and see if I can reproduce the issue.
Edit:
Looking things over some more, the GameMaker error doesn't seem to make sense within the given context. Something seems really wrong. I am suspecting something is wrong on GameMaker's end, as "health" is not associated with any attempted assignment. That would indeed be wrong!
I might encourage clearing the compiler cache or reinstalling the GameMaker runtime. Or, you could try a different runtime to see if the error goes away or changes. That might give a clue as to where the error is coming wrong.
Please keep me updated :)
In case you missed it, I did get around to playing this later on the stream!
Streaming Amaze Me Game Jam Entries (Part 2) - YouTube
After piecing together the rules, this game is really neat. Seriously, well done! Considering playing some more when my mind isn't dull. ^.^
Hey!
I believe what you are looking for is in the TweenGMS 2 beta. Passing a duration as an array [100] will tell the tween to use a normalized duration.
TweenFire(id, "io", 0, true, 0, [100], "x", 0, 500);
That would have x update at 100 pixels per second. So, the example above would have an actual duration of 5 seconds.
However, using step timing will have it update a certain amount per step.
TweenFire(id, "io", 0, false, 0, [5], "x", 0, 500);
The example above would move x by 5 pixels (on average) per each step/frame.
If possible, I'd take a look at the beta and see if this infact is what you are looking for.
-Stephen
Hey!
I'd like to confirm your example....
TweenFire(apple.x, EaseLinear, 0, true, 0, 5.0, "x>", 50)
The first argument [apple.x] should just be [apple]....
TweenFire(apple, EaseLinear, 0, true, 0, 5.0, "x>", 50)
Structs are quite a new thing, so expect there to still be issues. I appreciate this being brought up. I can check and verify these things later.
I am writing this from my phone, so sorry if this text comes out messy :)
Oh, this makes sense! I see what is going on now.
Yeah, I will need to adjust some things or mention this in the documentation.
One option is to create an initial room which immediately goes to the next room. That should allow you to use the room editor again for the object.
Thanks for getting back to me. This information is helpful!
I think a temporary fix is to place o_SharedTweener into your game's first room. The object is *supposed* to be automatically created, but it looks like it isn't for your project.
Let me know if that helps for now. I will need to look into this some more.
Also! If you haven't already, I encourage you to clear your project's compiler cache. (CTRL+F7)
Спасибо, что обратили на это мое внимание. Я нашел проблему. Я планирую в ближайшее время выпустить обновление, чтобы исправить это. А пока вы можете исправить это сами, сделав следующее ...
1) Открываем скрипт TGMS_TweenPlay
2) Найдите строку 25 с _t [@ TWEEN.TIME] = 0;
3) Ниже строки 25 добавить ...
_t [@ TWEEN.DIRECTION] = 1;
_t [@ TWEEN.TIME_SCALE] = abs (_t [TWEEN.TIME_SCALE]);
Это должно решить проблему.
Позвольте мне знать, если это помогает! :)
Hey, Alberto.
There is a known issue with the latest 2.3 build which affects the passing and calling of referenced functions/methods. This is something which TweenGMS has relied upon heavily. Ideally, Yoyo Games will have a fix for this soon.
FrostyCat has made mention of this over on the GameMaker Community forum: https://forum.yoyogames.com/index.php?threads/gms-2-3-0-beta-announcement.74346/...
This error seems to be related to the FINISH EVENT callback.
It appears to be reporting that "_event" is not defined, when it should be. This variable is a list with data about the FINISH callback. _event[| 0] holds a true/false value depending on if the event is enabled/disabled.
It is hard for me to know for sure why this is happening. Which version of TweenGMS are you using? (v1.0.6?)
Shoot me a private DM on Twitter @8BitWarrior (DMs are open) and I can give you my email address for responding with more details.
So! I'm not sure if this is going to work for you or not, but I have found one possible solution. It involves firing 2 tweens at the same time and effectively switching between them by lerping to the value of the desired tween. It's a bit funky, but it might do what you need it to. Do note though, that both tweens should use the same duration for this trick to work best. Here is a link to an example project. The code is in obj_Example. When running the example, click the left mouse button to toggle between the 2 tweens.
Let me know if this helps at all.