Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Oomek

Pages: 1 ... 18 19 [20] 21
286
Scripting / Re: Animate module BUG: linear tween not so linear
« on: February 28, 2017, 04:10:54 PM »
will do

287
Scripting / Re: Animate module BUG: linear tween not so linear
« on: February 28, 2017, 03:13:08 PM »
After further investigation I found that it's not only linear, the whole animation module timing is wrong. But' it's more apparent when using linear tween.
So, I added time logging in the animate.nut to see what is going on there

Code: [Select]
"linear": function (t, b, c, d) { ::print(t+"\n"); return c * t / d + b; }
I played the animations with the following durations:
10 frames * 16.6666ms = 166.66ms
30 frames * 16.6666ms = 500 ms
100 frames * 16.666ms = 1666ms



As you can see the "t" value is out of whack for the first 6 frames then there is a stutter at around frame 10-12
the results is not only stutter, but the animation itself takes longer than specified.

I appreciate some constructive comment regarding this, as this is a very serious flaw when you are trying so hard to make the interface smooth. Now I know why I struggled so much.

288
Scripting / Animate module BUG: linear tween not so linear
« on: February 28, 2017, 01:33:57 PM »
There is a bug in the linear tween of the Animate module. When you run the following code you will see that it's "easing in" it's like it's speeding up for some reason. I recorded it on the 400fps camera and its clearly showing nonlinearity of that mode. the first 3 or 4 frames have very small delta.

https://youtu.be/e7b_uRQQTpU



Code: [Select]
fe.load_module( "animate" );

local rect = fe.add_image("white_square_32x1080.png")

local move_rect = {
    when = Transition.ToNewSelection, property = "x", start = 0, end = 1920 - 32, time = 75, tween = "linear"
}
local anim_rect = PropertyAnimation( rect, move_rect )
animation.add( anim_rect )

I'v spent 2 days trying to figure out why my scrolling is so jerky, I now I know...

289
Scripting / Animation property does not accept variables for start and end?
« on: February 28, 2017, 10:37:12 AM »
I found out that the properties used in animation module do not accept variables as a value for start and end for example:

Code: [Select]
when = Transition.ToNewSelection ,property = "y", start = 200 * direction, end = 0, delay = 0, time = 500
When the variable "direction" changes it does not affect the starting position of the animation, is it by design or a bug?

290
General / Borderless 1 pixel frame on the top and left side of the screen
« on: February 28, 2017, 09:03:32 AM »
Can you fix the borderless mode please as it is still showing a 1 pixel border on top and left side of the screen. It can be fixed with an app WindowdBorderlessGaming.
I'm running it on Windows 10

291
General / Re: Animation stuttering on every mode but fullscreen
« on: February 28, 2017, 08:59:04 AM »
I found out that it's stuttering on nVidia but not when I use my other AMD card, that's weird

292
General / Animation stuttering on every mode but fullscreen
« on: February 28, 2017, 08:47:12 AM »
AttractMode is not properly waiting for vblank and it's stuttering in every window mode except fullscreen. I'm most interested in windowed (no border) but can not use it as it stutters.

293
Scripting / Re: animate module
« on: February 28, 2017, 05:39:35 AM »
how can I assign a current object position as start position for the animation?
ive tried:
Code: [Select]
onUpdate = function ( anim ) { if ("last" in anim.config) { debugText.msg = anim.config.last.x } },but .last does not exist, I need that for the situation when I play a new animation but the old one hasn't finished, so I need to know the current position of the object.

294
Scripting / Conveyor transition is freezing other animations?
« on: February 27, 2017, 03:52:50 AM »
Is it normal for Conveyor module to freeze all the other animations while it's animating, or did I screw something up?
Here is a video showing the problem:

https://www.youtube.com/watch?v=7lgb6eeeDZY

I slowed down all the animations for debugging purposes.

295
Scripting / Re: Transition.StartNavigation ?
« on: February 26, 2017, 06:24:08 PM »
Thank you, "restart = false" did the trick.

296
Scripting / Re: Transition.StartNavigation ?
« on: February 26, 2017, 11:00:44 AM »
Anyone? Plz? I'm stuck with my theme... :(

297
Scripting / Re: Transition.StartNavigation ?
« on: February 25, 2017, 07:20:36 PM »
I could do it like this:

Code: [Select]
local move_gameListBoxFadeIn = {
    onStart = function( anim ) { if ( listbox_hidden == true) { time = 250; listbox_hidden = false; }
    else  { time = 0; } },
    wait = true,
    when = Transition.ToNewSelection, property = "x", start = flx*0.822, end = flx*0.51, tween = Tween.Expo
}
local move_gameListBoxFadeOut = {
    onStop = function( anim ) { listbox_hidden = true },
    when = Transition.ToNewSelection, property = "x", start = flx*0.51, end = flx*0.822, time = 250, delay=2000, tween = Tween.Expo
}

but the AM is shouting at me for using wait = true. Is there any other way of doing it?

edit: The main problem here is that onStart is not beeing called if the animation is triggered again before the first run finishes.

298
Scripting / Transition.StartNavigation ?
« on: February 25, 2017, 06:26:29 PM »
I'm looking for a way to play an animation (game list slide-in) but just once when the key/joy is pressed and held.
The event Transition.EndNavigation works fine for slide-out, but I cannot find any equivalent event to do the fade-in.
Is it possible to do with the current api or I would need some new Transition.StartNavigation event to do that?

299
General / Re: How to change listbox scrolling acceleration?
« on: February 25, 2017, 11:20:22 AM »
open your attract.cfg file in a text editor and change the "accelerate_selection" setting to false.  that will disable the selection from speeding up

you can also edit the "selection_speed_ms" setting in this file to change the speed of selection changes when a key is held down

Oh there it is, thanks

300
General / How to change listbox scrolling acceleration?
« on: February 25, 2017, 04:45:59 AM »
I'm struggling to find a way to disable/decrease that crazy acceleration when the joystick is kept in one direction. Any hints?

I would also like to add a way to cycle through letters using two buttons. Is anyone willing to help?

Pages: 1 ... 18 19 [20] 21