GradeSchool's Recent Forum Activity

  • Thanks very much for your response. That's exactly what I did- I stopped trying to use the binary object and just used strings (with my position data as JSON numbers). It works quite well. I'm sending from a python-based web server:

    value = { "spriteFace": [ { "X": valueX, "Y": valueY, } ] }

    where valueX and valueY are floats. Then in Construct I am parsing and using the values. I used the documentation and the "JSON" example from the start page. Great results from my first experiemnts!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hello,

    I'm very new to Construct. I have a working websocket server doing basic communications with a basic Construct setup. I can send text and binary from Construct to the server, and I can send text and binary from the server to Construct. What I'm trying to do is actually use the binary data I receive in Construct to change things in Construct.

    My first test is to move a sprite with binary data received from a websocket message. I'm sending a float and trying to use the value to offset the sprite Y.

    Sprite.Y + BinaryData.GetFloat32(0)

    This doesn't work- the sprite stays still. I am also sending the binary message back to the server, where it reads like this:

    b'25.36458396911621'

    I can share the Construct file if anyone is interested in seeing it.

    Does anyone have any insight for a noob? Thank you

    Tagged:

GradeSchool's avatar

GradeSchool

Member since 19 May, 2021

None one is following GradeSchool yet!

Trophy Case

  • 3-Year Club
  • Email Verified

Progress

4/44
How to earn trophies