kmsravindra's Forum Posts

  • Thanks

    For 1.A, this is what I have and it doesn't work...

    [attachment=0:4mpe50mq][/attachment:4mpe50mq]

  • Thanks am now able to make it work with send message approach...Its just that I am still trying to understand what works in MP and what doesnt work in MP...Please see my post in C2 general on multiplayer - questions -

  • for this help....In the Pong example, multiplayer.peerstate("peerid","y") is used in the host group to position the paddle -

    [attachment=0:3aq1jw7d][/attachment:3aq1jw7d]

    I was trying to use the same approach to create the sprite at the mouse double clicked position...I have used associate peerid etc., as per the pong example...But somehow this approach is not working...cant figure out why...I am trying to understand basics of multiplayer so that I can create something...not yet started on any particular game as such for now...

  • I went through all the tutorials in detail on multiplayer and have few questions. Will be great if someone could please answer them -

    1. Which method out of the below should be used to propagate data from peer to host in multiplayer and in what conditions each of them is used and why?

    A. Set Client input state "<variable>" to something and then use Multiplayer.PeerState ("peerid", "<variable>") sequence

    B. Send message with peer data within the message

    C. Use Sync variable

    2. Can we set client input state on any event inside peer group OR should it happen only on multiplayer - on client update event?

    3. Why cant we not specifiy a boolean type variable in sync variable ? The sync variable dropdown doesnt show boolean variable of the object.

    4. Difference between PeerId and MyId

  • Thanks DuckfaceNinja, I will try this...

    I have a sync - position on sprite...But I was thinking set client input state "x" and "y" to mouse.x / mouse.y on double click and using create sprite at Multiplayer.peerstate("peerid","x") and Multiplayer.peerstate("peerid", "y") should do the trick...I didnt try sending the mouse.x, mouse.y in the message directly...Do you know what is wrong with my approach?

  • As a peer / host, I need to create a sprite on the screen in a game on mouse-double click at that position. This sprite needs to be broadcast to all other peers...I am trying to do this for a while now and have not been able to get across. Could some one please help?

    The exact issue is - I am able to create the sprite on peer with a double click, but unable to get it positioned at the mouse-double click position...It gets created on top-left corner at 0,0 position for x,y co-ordinates.

    Inside Peer group - I am setting client input state "x" and client input state "y" on mouse-double click event and sending a message with "create" tag...and

    on Host I have event/action as - On peer message "create" --> create sprite at Multiplayer.Peerstate("peerID", "x") / Multiplayer.Peerstate("peerID", "y")

    But somehow the above code doesnt seem to work in a desired fashion...any help is appreciated

  • , This is excellent!! Could you please take some pain to explain a bit math at high level in the "Draw textured quad" functions for the benefit of people like me ? Or any reference links where I can find bit more information on such things will be also very helpful...hats off!

  • Sure...Thank you.

  • rexrainbow, Chart.js has interactive tooltips /labels, on hover for all the charts. I think for polar charts, doughnut chart and pie chart also has now label/tooltip/legend options...Could they be added to your plugin please? That, I think will make the plugin very useful....

  • veatzJAREDveatz, Have you changed the GAME_NAME in chatevents to your unique game name? When I did this, it got me connected as host...

  • Pode, By any chance did this feature to add the option to export it to texture got developed? Please suggest if there are alternatives to download the QR code in an image format?

  • bump...

  • I have been given an assignment to design / build an app that automatically changes its configuration/UI etc., when flipped from tablet to laptop mode OR viceversa ( Specifically on 2 in 1 Dell XPS Ultrabook).

    Here are few links to detect the state of the laptop is in Slate ( tablet mode) or Clamshell ( Laptop mode)...

    1. https://software.intel.com/en-us/articl ... ertible-pc

    2. http://www.themethodology.net/2014/05/d ... wpf-c.html

    The problem is that the above articles refer only to C# code and looks like nothing equivalent is available in Javascript / Construct2 to support the same ( Pls correct if I am wrong)...

    I know that we can detect mouse / touch inputs and accordingly change the UI / configuration of an app...But how do I change the UI configuration automatically in Construct2 in Ultrabook when changing over from laptop to tablet while the user is in the middle of some work inside the app? Any ideas, then please let me know. I thought about detecting accelerometer angle but in some specific cases of laptop orientation vs table mode, even this will not be useful

  • rexrainbow, looks like google spreadsheet api requires OAuth to be setup. You can check if "Table charts" from Google charts could help solve your problem of having a grid...Integrating Table charts is quite straightforward...Link here.....https://developers.google.com/chart/int ... lery/table

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks istavang . I will go through this example.