PricingBlog

Events and Signals

  • mvvdv-1221824946825596978

    MVvdV

    1 year ago

    Is there a way to create 'signals' as events? as an example, i'd like to subscribe to a variable change to update a text element at a high interval, like mouse movement coordinates.
  • Tod-1221824948130025512

    Tod

    1 year ago

    Great energy @MVvdV! Your continuous contribution to the toddle Community just made you advance to Community Level 1!
  • rscott-1221876367226834944

    Bishop

    1 year ago

    I'm pretty sure you just use events on the right column and look for mouse position change. that'll fire every time the mouse position changes and you can do whatever you want at that moment... yes i guess it'll be frequent but I don't think that's an issue.
  • rscott-1221876753748721744

    Bishop

    1 year ago

    Here's a lil video. Didn't test it but I'm pretty sure this is how you do it.
  • mvvdv-1222116399338623056

    MVvdV

    1 year ago

    That is what i've got, it logs fine in the console but if i want to put that into a variable then have the variable be used in a string of text, the variable does not update with the mouse movement, it only does that for momentary events like mouse enter, not continues events like mouse move.
  • mvvdv-1222119008522997780

    MVvdV

    1 year ago

    My bad, i resolved it, i was trying to be clever and output the X, Y as an object and turn it into a string. i just split the values into seperate strings which works fine.
    👍1