Dave
09/01/2020, 7:11 AMPablo Caviglia
09/04/2020, 2:05 PMDave
09/08/2020, 1:20 PMarocnies
09/11/2020, 7:18 PMnanodeath
09/13/2020, 8:47 PMnanodeath
09/14/2020, 2:38 PMnanodeath
09/15/2020, 4:00 AMDave
09/15/2020, 12:42 PMDave
09/16/2020, 8:35 AMDave
09/17/2020, 7:45 AMMrPowerGamerBR
09/19/2020, 7:19 PMDave
09/20/2020, 6:31 PMnanodeath
09/21/2020, 8:59 PMPablo Caviglia
09/22/2020, 3:16 PMPablo Caviglia
09/22/2020, 8:32 PMpublishing {
publications {
register("aar", MavenPublication::class) {
groupId = "com.senaptec"
artifactId = "toolframework"
version = project.version.toString()
artifact("$buildDir/platforms/android/build/outputs/aar/android-debug.aar")
artifact(androidSourcesJar)
}
}
}
the artifact(androidSourcesJar) section doesn't work because that source set doesn't actually existsnanodeath
09/23/2020, 2:26 AMplayArea.hitTest(mouseXY)
(playArea is a roundRect
) no longer works correctly.
playArea.hitTest(playArea.localMouseXY(views))
also doesn't work. what's the incantation I'm missing?Jaime Guerrero
09/27/2020, 9:02 PMval size = 800.0
val cam = Camera(0.0, 0.0, size, size)
val container = cameraContainer(size, size) { ... }
container.camera = cam
First, I have a soccer ball image in the middle of the screen and I’m using its position to move the cam.
container.addFixedUpdater(ConfigModule.FPS.timesPerSecond) {
...
launchImmediately {
if (match.state == State.TakingPhoto) cam.zoom += 0.02 // This line for the second question
cam.moveTo(ballRenderer.image.x - ConfigModule.halfScreenSizeWidth / cam.zoom,
ballRenderer.image.y - ConfigModule.halfScreenSizeHeight / cam.zoom, 1.nanoseconds, Easing.SMOOTH)
}
}
This works but I would like to add some delay in the camera movement. For this, using 1.seconds
instead of 1.nanoseconds
I get the correct delay. The problem is that in this case, I can see the ball a bit laggy, almost two balls at the same time in the screen, maybe due to the animation. Is there another way to do this?
My second question is the zoom. I would like to change the zoom in any moment but I don’t know how to do it correctly. When the match is in the TakingPhoto
state (about 50 iterations) I take advantage of this to zoom in while the ball is stopped.
if (match.state == State.TakingPhoto) cam.zoom += 0.02
I think this way is a mini hack. This works perfectly but I would like to choose in any moment of the match another zoom, but using an animation. I mean, if my current zoom is 1.5 and the ball position is off the soccer pitch for example, I need to change it from 1.5 to 1.0. Which is the correct way to change the zoom using an animation while is positioning in a point?
Thaaaanks!RezMike
10/07/2020, 8:46 AMDeactivated User
10/14/2020, 11:01 AMhttps://www.youtube.com/watch?v=5A-rzd1jXuU▾
Bohdan Yevtushenko
10/15/2020, 3:52 PMarocnies
10/18/2020, 1:01 AMDima Avdeev
10/28/2020, 10:23 AMDeactivated User
11/01/2020, 1:31 PMPablo Caviglia
11/05/2020, 4:53 PMPablo Caviglia
11/05/2020, 7:41 PMPablo Caviglia
11/07/2020, 2:09 AMPablo Caviglia
11/09/2020, 10:36 PMPablo Caviglia
11/11/2020, 4:54 PMPablo Caviglia
11/11/2020, 5:19 PMRezMike
11/12/2020, 4:41 PMRezMike
11/12/2020, 4:41 PMPablo Caviglia
11/12/2020, 6:04 PM