newt's Forum Posts

  • Prolly want an int() in there.

  • Yeah, an array has that functionality built in, pop front, push back, etc.

    On object creation, set object.value to object.count-1, array push back value object.count-1

    Then you can do your picking... object variable =arrayat(0), do foo.

  • My point is I don't know why you need it to work that way when it already is that way, it's just not how you see it.

    You have to come up with some way to show what you want to happen, and why it needs to be done.

    Good luck.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok show and tell.

    Edit:

    Link deleted

  • The difference is that if I can create an object at front so that it has index 0, I can design events more cleanly. There is less room for error, less potential for wrong instances to be picked, less overhead managing variables, easier to change/modify existing objects, etc.

    Ideally, I'd want to be able to create an object and specify which iid it will have, essentially inserting it anywhere in the array (not overwriting anything). Specifying front or back was just my easier suggestion.

    Seriously- this would be really useful. Maybe it's not clear to you, but I've been doing things the ways you've suggested countless times in the past, and I come to realize this sort of feature would help me a lot.

    I've been looking at plugin stuff, and I don't think it's possible to do it with a plugin, but maybe someone who knows more about creating a plugin would know whether it is possible. Hopefully Ashley will consider this feature.

    I completely disagree. Moving iids around would more likely cause confusion as you are taking something and replacing it with something that is identical.

    All you are really doing is changing how it looks in your head.

    It's almost like taking the joker card, and replacing the ace, but it's worse, you're taking an ace, and replacing an ace.

    Let me make a suggestion since you are having trouble organising it.

    Why don't you start from the end of the index rather than the beginning?

    Sprite(sprite.count) gives you the last index, so every time you create something it will effectively be at your start position.

  • Ok, now tell use what is different between the one you are creating, and the one at the front, other than iid, size, angle, opacity, or position.

  • So let's get this straight.

    You want to destroy the first instance, and create a new instance, and have it replace the first instance?

  • Instances are identical. Unless you know something we don't.

  • Thanks for the info.

    It's almost as useful as Steam trading cards.

    Also:

    Make an example to that shows what you are talking about or this will likely be closed for not following guidelines.

    Unless you are just ranting, in which case you should at least update to a current version.

  • Couldn't you just pretend that the object you just created is the first instance, say change the instances frame for example.

    You haven't given a reason why something like that needs to be doable.

  • And what happens to the object it's replacing?

  • As always you can assign an instance a value on its creation and use that instead.

  • BTW for what is that formation for?

    Trying to figure out how to do different types of formations.

    Thinking one might be prefered.

    All have some sort of flaw, that being friendly fire.

    Except an arc, but that has limitations too.

    Edit:

    To be more specific, this is the formation they would form after traveling from one point to another.

    Fairly certain you would not want any formation other than a straight line for the trip there.

    Hides numbers, bombs destroy clusters, etc.

  • From 1 to 5 which formation would you rather use?

  • Yes, and there are some third party plugs to aid in obfuscation.

    It pretty much doubles your workload, but yeah, you can encrypt all your strings, and hide all your things.

    On mobile, that will likely mean you will have to download resources every time, unless you use some third party Cordova plugs to deal with device storage.