PlayMaker Help & Tips > PlayMaker Help

[SOLVED]Int Compare not working

(1/2) > >>

AxelG:
Hello,

I'm trying to compare an "animated" int to a regular one with an int compare action and I can't make it work.
The action automatically goes to the next event whatever the value is.

Screenshot attached.

Is my setup wrong?

Note: The goal here is to define when a video is finished, I'm using a VideoPlayer get time converted float to int compared to a VideoLenght float converted to int.

tcmeric:
Hi, try not using the built-in finished event. Make your own event to use in this action. Built-in Finished events typically fire right away.

AxelG:
Hi Tcmeric,
I tried with an other event and I had the same issue, thanks for the tips anyway.

ch1ky3n:
hey Axel, are you familiar with the debug?

whenever you have a problem, try to debug it
you can do it by

1. Rightclick on your state and toggle breakpoint it
2. then hit Play, it will pause on the state where you enabled the "BreakPoint"
3. Finally, you can check the flows, the variables and why they send you to particular events.
4. try to toggle as many breakpoints in your state as possible to better analyze the problem.
5. It will make the game goes frame by frame and you can move on to the next frame by clicking on the >> button near the play button(The fast forward button)
6. while doing it, check your state flows and try to figure it out why

hope it will helps

djaydino:
Hi.
you have an event for all conditions, then Every frame is not needed.
in your setup you might get loop error as well.

Can you show what you are doing in the 'Get Next Event' State?

I think it can be simplified by having the int compare in 1 state together with what you have in the 'Get Next Event' State.

And only set an event for equal and greater (leave lesser than empty)

Navigation

[0] Message Index

[#] Next page

Go to full version