Toby R's Recent Forum Activity

  • You cannot change UID, that's the point. You can also pick instances by "instanceName" as I described here:

  • I've made a quick example.

    1. currentlySelectedWeapon holds the UID of the weapon object

    2. weapons family contains all weapons

    3. once you pick family member by UID all actions made on family objects affecting that particular object with UID you provided so you can add/remove ammo etc.

    Note that instance variables must be family instance variables.

  • If you pick from weapons family by UID you grab te particular weapon, and you are able to manipulate instance variables for this particular weapon.

  • Why not just save the active UID to some global variable (let's call it activeWeapon)? Now whenever you need to read or save data from/to instance variables you simply pick by UID and do whatever is needed.

  • Ashley what do you think about that change?

  • Thanks gumshoe2029 for your reply. AJAX communication is just user<->server and it is very slow comparing to WebRTC and it is WebRTC (C2 Multiplayer object) I mean here.

    So I don't want to save the game state but do the real time multiplayer game. The point is that with Multiplayer object in C2 you sync C2 objects data, so I just was wondering how pros are doing this. Theoretically it is possible to split host and peer code, but due to the architecture I'm just wondering if it's not gonna be pain during development in further phase. So not sure if it's a good or bad idea.

    Haven't had time to play with it yet really.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Could you edit your links and remove "https://www.scirra.com" part?

  • Again I came to the point where my eyes struggles finding an object in the project tab

    This is how it looks when you start to try make it ordered:

    So once we have a lot of objects and directories it starts to look messy. On this pic is not that bad yet, but it will get worse with every new feature/new objects/more directories.

    If the directory names would be simply bolded I believe it would be way more readable. What do you think guys?

    EDIT: same goes for layouts and event sheets.

  • Potato23 can you show some of your work? Graphic portfolio or games you made graphic for?

  • You can make a loop with number of iterations equal to the number of frames, then on every iteration spawn an instance of your sprite object, now simply adjust the position and set the frame to be equal to the loopindex.

  • Awwkay... I got it. My Character is in container with another sprite (his gun), and that gun sprite was not global, that's why I had such a wierd situation.

    I made gun sprite global as well, and it works fine now... duh!

  • Yes I'm sure. I've checked that like ten times. Darn that should be trivial and I stuck with it for a pretty long time now huh.

Toby R's avatar

Toby R

Member since 23 Mar, 2015

Twitter
Toby R has 18 followers

Connect with Toby R

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • x6
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

14/44
How to earn trophies