PabloDev's Forum Posts

  • Problem Description

    It is not possible to declare two variables with the same name even if they are in different fields.

    This bug is a problem when moving blocks of code that involve field variables.

    This is because, as described in this report, you can not have two variables with the same name even if they are in a different field.

    What happens if I have a block of code in the field of "Variable1" and I want to move that block to the field of "Variable2"? This will not be possible because there will be a problem with the names of the variables.

    As you can see in this image, "Variable1" does not enter the "Variable2" field.

    So why can not they be called with the same name?

    Attach a Capx

    https://www.dropbox.com/s/q9hzkpjn4mqr5i8/fieldsProblem.capx?dl=0

    Steps to Reproduce Bug

    Just try to change the name of "Variable2" to "Variable1", you will see that it is not possible.

    Expected Result

    If the variables are in different fields they should be able to have the same name.

    Operating System and Service Pack

    Win10 64

    Construct 2 Version ID

    r266 64bits

  • You do not have permission to view this post

  • It may be true and that the developer made money with the game but it is also possible that it is not true and it is only a strategy of the website to make you believe that in flippa you will earn money.

  • If it's a C2 error, why do not you open a report?

  • I use functions a lot. When online the event calls the function, when offline calls the function directly without photon.

    For example:

    Pressing Jump.

    - Player is Online. Raise event 2.

    - Player is Offline. Call function Jump.

    On Photon event 2. Call function Jump.

    Function "Jump".

    Simulate pressing Jump key..

    Something like that, so you can use the same mechanics for both online and offline. use all cahracter behaviour and movement in funcitons, then the function can be called either directly (if offline) or by a photon event.

    It's a good idea, I'll consider that mode.

  • Hello, is it possible to simulate the reception of an event?

    This would allow me to add the offline game in a short time but with the infrastructure of the online game.

    That is, if the player selects the offline game, the code would be the same, it would not take much work to program the offline mode because now the events would be simulated.

  • Ok, I understand what AirConsole is.

    But I was referring to something different.

    I wanted to say that the smartphone was connected to the PC via bluetooth, so from the PC (Construct 2/3) the sensors and screen of the smartphone are read, without servers.

  • I remember playing with the AirConsole plugin... it allows you to do that.

    the only other options would be to use the multiplayer plugin, or make your own websocket/node.js custom server... good luck with that!

    I can not find the AirConsole add-on, is it not an official complement ?.

  • Hello, is there any way to connect the phone to the PC and use it as a control command with C2 ?.

    From C2 you should be able to manage the mobile's touch screen and the other features offered by a mobile phone.

    The idea is to use the phone and its features to control a PC game.

  • Hello, the platform behavior has a property or expression called "animation mode" but nothing in the DOC is indicated on this.

    Why is there no documentation about this?

  • It also happens to me but I had not made an error report.

    https://www.construct.net/en/forum/construct-2/general-discussion-17/problem-with-c2-141297

  • I understand, thank you.

  • Where can I download that version 267 ?.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I do not understand your problem exactly, I can select the events I want and paste them as I wish.

    What's the problem? Can you record a gif ?.