fens's Forum Posts

  • Remote preview manages only non-debug mode, when you open it in several windows.

    How can I run remote preview in debug mode?

  • Hi collegues!

    I have a problem. I dont know how to solve it easily without adding javascript code.

    I dont't want to change a target type for a turret behaviour, but I have some specific condition.

    Units and building have a helper - invisible dummy that plays target role for turrets. Turret attacks units and buildings. I have specific conditions - I dont what a turret attacks building if there is unit nearby.

    How can I stop turret from attacking building if there is unit nearby? Unit and turret have the same dummy (target group), I woudn't like to give them different dummies (game logic will demand a lot of fixes).

    PS - Yes I know I can manage it with target accquire conditions, but it declines optimization, as it requires "pick and for" conditions frequently.

  • Remote preview doesn't provide me with construct 3 debugger. How can I debug multiplayer?

  • You do not have permission to view this post

  • Photon can send arbitrary js data (basic types, objects and arrays) but Construct2 does not support anything aside strings and numbers as far as I know.

    So we could send single number payload w/o conversion to string but this will make api more complicated while benefit is questionable.

    Can I decrease data size if I use my own token split symbol (like "|") for data parameters?

    JSON uses a lot of extra symbols "{", "}", ";" for 1 dimension data.

    Oh, and it's very sad to send float like 2.7182928, because it's string.

  • As far as I understand raise event data is always STRING.

    Is it possible to optimize event data with ints and bools?

  • Hi!

    I don't know if this question was asked, but I haven't found any answers.

    Basic C2 multiplayer have very useful feature - object position sync. As far as I know photon doesn't provide similar feature. My own solutions - sending coordinates every second works bad and needs a lot of traffic.

    Could you help me to find proper solution to object position sync problem without learning true server-client communication manuals?

  • I pasted sprite object into canvas (used canvas functions).

    Than I was trying to get rgba code of any pixel of that sprite. Canvas couldn't find pixels belonging to sprite. Is there way to get rgba of pasted object?

  • Yeah, this is I've been looking for )

    But it's same like: "I solved this problem with "for each every tick" method, but it takes a lot of cpu work."

    Guys, I don't catch how I should work with families. I didn't found any actions with inheritance (only clone).

    • I want use the same sprite for all units.
    • Unit has team, which i can change during game proccess.

    Is it unsolvable problem?

  • For example:

    • I want use the same sprite for all units.
    • Unit has team.
    • Turret shouldn't target unit with same team value.

    Turret behavior doesn't work in this way (link to capx)

    drive.google.com/file/d/0B55PnHLHjkIGQ3lHRVRMNUsxUEU/view

    tarek2

    Thank you, I never thought in this way, but it doesn't work if I have the same sprite for player and targets.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Guys, help is need so much.

    I need to check for targets to attack it, but basic turret behavior doesn't suit for me (it's impossible to manage targets with complex conditions).

    I solved this problem with "for each every tick" method, but it takes a lot of cpu work.

    Are there up-to-dated addons (or solutions) with turret behavior but more advanced and optimized?

  • Thanks a lot!

    Now it makes sense )

  • All unit's in file has similar turret behavior. Why top unit's shoot and bottom don't?

    Cap file:

    drive.google.com/file/d/0B55PnHLHjkIGQ3lHRVRMNUsxUEU

  • For now a days it's common practic "Code free". It gives users free opportunities to do code and pay only for compile and export services. It helps test all features and reallize you really need this tool.

    Guys I wish you best so I really want to share my vision (based on other game engine expirience). Is it possible to change monetize politics to force users pay only for last step of game making?