megatronx's Forum Posts

  • Bump

  • Hi,

    I've got same types of objects in my game that I would like to call actions for in groups ( not to confuse with groups in the event sheet ). I figured I would create a variable "Group" and set it for example to 1 for some objects, then 2 for others etc and that it would be a good start. But then I have no idea how I should check for sprites with same group without using specific numbers. I would want to check if sprites have same variable value without specifying what value it is. Putting them in to families is not a possibility. Any ideas?

    Thanks

  • Could I ask you are you using one big layout or somehow you're teleporting the player to side of the layout on transition?

  • Totally. I think now that I would use that for storing everything that would have to have different parameters and values on creation.

  • Hi, sure, atm I would use it for storing those asJson objects into arrays responsible for storing levels ( then exporting those arrays asJson in to external files ). I've got many types of same types of objects there in different sizes with many different variables responsible for different conditions. Now, when I want to load a level with all the data., on creating the objects I have to set all parameters and variables manually one by one using tokenat, and it ends up being a lot of conditions and actions. Also later down the line the number will increese due to more objects and data I will be adding.

    I would imagine it would work something like this in my case

    • For each Platform(Family): Set Value at X,Y,Z,Platform.asJson
    • Ajax; On completed: Array: load from JSON string AJAX.LastData

    - For each XYZ element & Current value =/= 0: create object from JSON string Array.CurValue

    So that's how I would currently use it, but obviously it could be used with other data storages, or even multiplayer games for setting data to transfer!

    Thanks!

    EDIT@ Don't want to add to much, but it could go even as far as export layout and layer as json.

    EDIT2@ And thinking about it bit more, maybe there should be to types of storing or an option to either store with position on the layout or without it. Just looking at it from different usability angles.

  • Hello,

    Not sure if this feature is already in C2 as I can't find it, but I would think this would be a great feature to be able to instantly export the whole object with its position variables and behaviors etc to JSON string in to an array value for example and to be able to load it with single action Create object from string. What you guys think?

    EDIT@ Corrected myself. I'm not grasping easily all that programming lingo.

  • My favorite tools are A3 paper and bunch of colored pens. The latency between your thoughts and what you write is very low :)

  • Thanks everyone!

    ArcadEd yeah it is loaded now ;) Edit: The plugin is in did incredible! :)

    Colludium Interesting examples!

  • Right! >.> Thanks man.

  • Arima This is what i've done. But it works bit funky. MoveTo would be so simple: -Move to, -on object arrived. or something along those lines.

    <img src="http://img854.imageshack.us/img854/4404/9h1z.jpg" border="0" />

    DestinationPonts var looks for example like this 864`960__864`736__864`536__464`536

    ArcadEd I don't know, Im getting this error message.

    <img src="http://img855.imageshack.us/img855/5102/pad0.jpg" border="0" />

  • Hi,

    Any idea if this is available or coming? Rex's plugin doesn't work and I can't seam to find anything about it in the search. I'm using pathfinding atm but it's not as precise as I need it to be. Thanks.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes. Just make sure you will have a way of checking if that's the object you want by using variable.

  • Sure, but maybe just those top icons and tabs ( FIle, Home, etc ) could be inline with the first row?

  • Hey,

    Would it be possible to change the top of UI slightly like this so there would be more space underneath? At least to have it as an alternative?

    <img src="http://img841.imageshack.us/img841/3251/z6iu.jpg" border="0" />

    Thanks!

  • Yeah man, put them in to families, add variable to it, so later you can pick an object in the family and check if the object has particular variable value and you're ready to go ;)