xoros's Forum Posts

  • Cool! I think, position, angle, position & angle will be enough.

  • Is it possible to implement "moving instances" together with container without pinning them to it? something like boolean "move instances = true"

  • Thank you R0J0hound,animation solution is a good work around, but I think it could have some limitations for more complex objects (e.g. objects with different dimensions, multiple animations) and if you have a lot of objects in the game it will be hard to manage them.

    Another problem is perfoming actions on each newly created object. In this particular example - how to make each object reach each destination (the problem is - every time you click on create new object, movement of the prevous one is interrupted)

  • Hmm, I can't imagine how to do it another way. May be there's an in depth tutorial on this topic or documentation? Here's the .capx, where I've tried to illustrate the problem:

    dropbox.com/s/vc4o6cn0ibu06s5/create_family_member.capx

  • So, is there any hope for this sort of functionality?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • For example I want to create one certain member (object type) of the family "Cards" - "card_green". I can't do it like this:

    create "Cards" and than point to a certain member "card_green", because I can't pass object type directly from a variable, so have to create hard coded conditions for each possible family member: if var Obj=1 create "Green", if var Obj=2 create "Red" etc. It's also not possible to make reusable logic because of that.

  • Hi, I know there's no work around for this problem, but I would like to address this issue again and hear what do you think about it.

    I'm developing a game, which distantly resembles mahjong in the game mechanics. During the game a lot of game tokens (many different game pieces, power ups, special cards, bonuses etc.) are generated on run time, to some extend randomly. A lot of actions are performed on single tokens. I have like a main family "Cards", which has many children (game pieces) with different characteristics. As the game grows, writing game logic for creating this family instances on run time and performing actions on them is pure nightmare: I have to duplicate the same "code" for like 50 different family members again and again. After this breaking change in version 101 it got even worse. In order to make simple logic (which would be like 2-3 lines of code in AS3) I have to struggle with work arounds for hours.

    One feature would solve all this problems easily - it is accesing object types by name directly (like create "SpriteXYZ") and not through editor dialogue only. I read, that right now it's not possible because the code could not be obfuscated properly (you would see the objects name in the code). I can't believe, that there'S no solution for that.

  • I will try to recreate the problem with .capx

  • Nope, I don't use it at all in this project.

  • Yes, I know about this change. It's weird, that the project works in 103, but not in 103.2 anymore.

  • Hi, I've just updated to the version 103.2 and half of my project stopped working again. The problem seems to have something to do with this major "picking" change in version 101, which also broke my project. But something has definitively changed in the version 103.2, because if exported with 103 - everything just works fine. So generally, it's not possible to pick family instances by UID's. I didn't post in the BUGS section, because right now I don't have time to dig deeper into the problem and I'm going to switch back to version 103.

    I'm really frustrated. Does anyone knows what has changed in the version 103.2?

  • I have a question about local variables:

    Can anyone give some practical examples, how to use local vars effectively?

    Why is it not possible to assign a default value to some parameter like Sprite.X?

    For most of the cases I have to use global variables, because local vars change they value every tick to the default. May be I don't get something.

  • Hello,

    there are plenty of really helpful topics on scirra forum, so I thought it would be nice to be able to bookmark them and access them later from the user profile.

    of course you can use browser bookmarks for that, but this way topics would be accessible from everywhere.

  • Here's the similar thread with some work arounds:

    scirra.com/forum/how-create-obj-by-name_topic50394.html

    but, as far as I understanf it's not possible and I'm missing this functionality badly.

  • Creating objects of the certain type on run time is really painful right now: you have to make a particular case for each object type. Please do something with it.

    One possible solution could be to be able to pass "object type" to a variable and than use variable to create objects.