teahousemoon's Recent Forum Activity

  • The easiest way to fix this, I think, is to simply import each frame as a separate sprite. I was just hoping to avoid that.

  • That's an interesting idea, thank you GenkiGenga. Unfortunately, I don't think it will work, as I suspect that setting animation frame to X under those circumstances will lead to all of said 'objects' instances changing frame in response to that event.

    But I will give it a shot and report back!

    Also, looking forward to checking out your portfolio site!

  • I'm sorry, I'm a little out of it and despite reading a good deal on IIDs in the manual and throughout the forums, today just isn't the day for my brain to be especially adaptive.

    I'm trying to set the IIDs of an object's instances based on its x-coordinates.

    E.g.

    Object1 X=60 ---> set IID to 1

    Object1 X=150 --> set IID to 2

    and then..

    Object1 IID=1 --> set animation frame to 0

    Object IID=2 ---> set animation frame to 1

    et cetera.

    I understand I might need to use instance variables and/or [though hopefully not] nth instances, as referred to in the manual:

    "Pick Nth instance

    Pick the instance at a given place in the internal list of picked objects. This is most useful used in sub-events to act on separate instances. For example, in a "Sprite collided with Sprite" event, Pick 0th instance and Pick 1st instance can be used to act on each instance involved in the collision separately.

    If all objects are currently picked, this condition can also be used to pick an object by its index ID (IID). For more information, see common features."

    Anyways, I'm going to go be active for a bit in an attempt to rejuvenate myself. Any assistance here would be appreciated.

    Thank you!

  • Gamasutra on Scirra

    Old news for us, but nice to see the word spreading.

  • I feel bad to have caused you to write all of that.

    I agree with you and thank you for your time, though I'll seek not to distract you for such a period unless I feel its worth it, in the future.

    I've reviewed the old poll, and can see how several of your points can be related to even just that one (and indeed, wouldn't be surprised to discover if that's where much of your thought regarding this subject was initially generated).

    So yeah, thank you again.

    You did spur my curiousity with "a public list cannot take in to account important work we are doing privately for companies behind the scenes"...

    <img src="smileys/smiley1.gif" border="0" align="middle" />

    Twice now I've typed a good deal more and deleted it. I'll shut up now.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • selecting the correct uid

    ^I believe this answers my question...

    (quoted from above source)

    Newt:

    "Actually I think the reason its not there, is because uid's aren't assigned until runtime.

    Also there's no good way to guess the uid, because the naming method is shared between all objects.

    What you can do is create the objects and place the uid into a instance variable, and then pick by that.

    Or, you can pick by the sprites index "pick "nth"". This is unique to named object types, so all instances of the same object are easier to pick. Just remember the first is 0, second 1, etc. Then in expressions you can use sprite(index) to reference a specific instance, sprite(0).x would be the first created sprites x."

    ----------------------------------------------------------------------------------------------------------

    More information here:

    Scirra Manual

    and

    Understanding UIDs and IIDs

    Sorry, just didn't know what to look for.

  • Hello!

    I'm trying to trigger animation frame changes via instance variables, so that animation frames of an object can be switched while other depictions of that same object [with different animation frames] are visible, and unaffected.

    Is this possible? Or is there another way, besides importing each frame of the animation as a separate sprite?

    Thank you!

  • Can you place 'or' blocks between groups of conditions?

    E.g.

    Condition

    Condition

       or

    Condition_________Action (resulting from any single combination)

    Condition

       or

    Condition

    Condition

    I can work around this using subevents, but then I have to copy/paste the actions to each subevent, which is redundant by comparison.

    Just curious!

    Using r95 (but have read the bug fixes from r96-r101)

    Thank you!

  • under the hood spritesheets in Construct 2

    I apologize, I found the answer to my own question. I've read at least some of this blog entry before, I'm not sure why the knowledge didn't feel accessible.

  • Thank you for the suggestion, mutuware.

    I think the degree of sophistication offered by uservoice detracts from two of my points above, which I believe to be valuable:

    "thus eliminated the risk of lengthening the feature request book any further than would otherwise occur."

    and

    "make everyone involved, regardless of their social and/or technical fortitude."

    Likewise, though I can't seem to find the quote at the moment, either Tom or Ashley wrote something relating to the speed and easy of use that the Scirra website sign-in and registration offers.

    My guess is that neither of them would endorse an unnecessary complication for their customers unless it provided a bit more leverage to their cause than my proposal does.

    Uservoice appears to be a nice tool, however, and thank you for bringing it to my attention for potential future usage!

  • Tom speaks of the use of spritesheets to optimize website loading time here.

    This is, potentially, evidence that the use of animation frames in lieu of individual sprites may be advisable. Unless webpage loading times function differently than direct javascript/hmtl5 loadtimes? (sorry if that last bit is a tad miswritten - like that ). <img src="smileys/smiley1.gif" border="0" align="middle">

  • I am in a position where I could use either individual sprites, or a single sprite with many animation frames, and have them spawn at their designated locations when needed.

    I'm just curious whether or not there is likely to be any advantage is terms of memory size of my gamefile, and/or a difference is framerate resulting from the way the assets have been imported.

    Thank you!

teahousemoon's avatar

teahousemoon

Member since 4 Aug, 2012

None one is following teahousemoon yet!

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

17/44
How to earn trophies