Ashley's Recent Forum Activity

  • I need the .cap to see this happening myself, ashley@scirra.com, thanks...

  • Sorry about disappearing events, botched something in the event sheet editor...! Back up your .caps and open them again in 0.88 and it should be fixed!

  • Ah, private variables don't work in families yet. Got some work to do there... sorry!

  • Nice demo of custom shooting!

    If you wanted it to be perfect, you don't need the For Each condition (still does it per-instance) and you could use an image point on the turret for shooting, but it covers the important stuff <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />

  • This way you can do a loop numOfObjects times, and use a condition of "loopIndex = spreadValue" to manipulate an individual instance.

    The For each condition completely supersedes this. It automatically triggers for each instance - or each picked instance, if more picking conditions are above it - and allows you to perform actions on instances individually. You can even for-each two objects in one event, and use a Compare Values to compare distances or whatever, to cycle all combinations of instances (the Turret movement is probably better at this though). So "Spread value" is completely redundant in Construct.

    I'd be interested to see a .cap or some events demonstrating a situation where specific instance manipulation by UID is the only solution, and no better way exists. I only really put in UIDs to allow for referring to a specific object over time.

  • In the resource bar, edit the Default icon.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This shouldn't be a problem. Does the shortcut player('speed') work?

  • Can you send the .cap to ashley@scirra.com? I'd be interested to look at both disappearing events and the lagging runtime...

  • You can do this with the function object. Call a function, eg. "DoStuff" and forget picked objects. Then add an event like:

    + On function "DoStuff"

    + Sprite UID is 2

    : Sprite: do something...

    Because the picked objects are wiped clean for the function call, you can then pick the sprite with the UID you want from a clean slate and do something with it. Remember, after the function call the picked objects from the old event are restored <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" />

    If the object of the UID you want to specifically modify is already picked, you can add a subevent 'Sprite UID = 2' and do something with it there. It will then pick the sprite with UID 2 so long as it was picked in the parent event.

    Out of curiosity, why do you need actions on specific instances? Just wondering the circumstances, in case we can better design a solution (or if one already exists).

  • Yes, as I thought: the colliding objects have the Physics movement. Objects with the Physics movement automatically collide with each other.

  • Woops, made a mistake in the expression validator. Will try fix soon...

  • Thanks Deadeye, you've done some great work <img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /> I'm going to split Common properties in to its own article from Sprite properties though, because it applies to all objects.

Ashley's avatar

Ashley

Early Adopter

Member since 21 May, 2007

Twitter
Ashley has 1,380,046 followers

Connect with Ashley

Trophy Case

  • Jupiter Mission Supports Gordon's mission to Jupiter
  • 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
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • Forum Mega Brain Made 20,000 posts in the forums
  • x107
    Coach One of your tutorials has over 1,000 readers
  • x61
    Educator One of your tutorials has over 10,000 readers
  • x2
    Teacher One of your tutorials has over 100,000 readers
  • Sensei One of your tutorials has over 1,000,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • RTFM Read the fabulous manual
  • x35
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

32/44
How to earn trophies

Blogs