Paradox's Recent Forum Activity

  • Yes, you have to re-pick the sprite in the function. Set one of the function's parameters to the Sprite's UID, then in the function "Pick by UID" and use that parameter.

  • I think what it sounds like you are looking for is "Step."

    https://www.scirra.com/manual/169/debugger

    Set a break point, and press "step" to advance frame by frame. You will see the Events highlighted as they are executing.

  • The feeling of being limited by the event system does fade after you become more proficient with it. I remember feeling confined, but in the last few games, it never even occurred to me.

  • You can post the URL, just leave out the colon or the slashes for us to fill in.

    (you can probably get to 500 rep real fast too. See the easier rep to earn here: https://www.scirra.com/me/rep )

  • Yes, Construct2 detects when it's the same image and should only include it once. Or at least it's that way with every other spite, sprite font, etc. and since that's the point of tilemaps, I'm sure Scirra used the same system.

  • I took that as a challenge to make the shortest solution possible.

    Can anyone go shorter?

    here's mine: (button sprite has an instance variable, IVariable)

    Oops, just noticed, I included 4 instead of resetting on 4, just leave the 4 out of the Tokenat.

  • The problem is the "wait 2 seconds."

    Everything after that action waits 2 seconds before executing, including the "Set Ammo to 10"

    The rest of the game continues while those actions following the "wait" are waiting to execute. So since the Ammo is still 0, and the animation is still 9mm, that event is triggered every tick for two seconds, until the ammo is set to 10, which prevents the event from executing anymore. However there is a whole set of waits built up, so all those actions after the wait continue every tick for 2 seconds more, as all those waits run out.

    I moved the "Set Ammo to 10" above the wait, and it seemed to work.

  • You can post the URL, just leave out the colon or the slashes for us to fill in.

    (you can probably get to 500 rep real fast too. See the easier rep to earn here: https://www.scirra.com/me/rep )

  • Sounds like it's either firing that event 90 times each time you reload, or it's somehow counting something and adding it all instead of 1. (less likely since you tried global too.)

    Can you show use an example of how it works, so we can see where it might be defying logic?

    (crop out events needed to make it do the same in another Capx?)

  • I would do it with the frames for each card, unless I was planning to animate them, in which case I would still use the same sprite and make different animations for each card. It makes managing your object list a lot easier.

    (I believe you could put an animation in the sprite with 1 frame of the back of the card. and could switch to that animation to flip the card. Even though there is only one frame in that animation, the frame would stay the same, so when you switched back it would still be the same card. In other words, you could still check the frame number to see what card it is even flipped down.)

    You can still place all the cards off the visible screen in design time, and edit each card's instance variables manually.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It hides all events that don't contain the word somewhere inside it, or it's sub-events.

    If the word is mentioned a lot, you will see a lot of events. If it's only in 1, only that one will show, and all others will be hidden. You have to cancel the search to get the others to show again.

    I add Search to my "Quick Access Toolbar" along the top edge, so it's present no matter what tab is open.

    One glitch, if you are at the bottom of a long event sheet, and do a search, you may have to scroll up to see any of the results.

  • Looks like you partially can by this thread:

    https://www.scirra.com/forum/detect-phone-type-cocoonjs_t83268

    From the manual:

    Is on platform

    Test if currently running on a given platform, such as Android or as a Windows 8 app. Note it's possible multiple options can be true simultaneously. For example, if running in a browser on Android, both Is on platform Android and Is on platform HTML5 website will be true.

Paradox's avatar

Paradox

Member since 29 May, 2012

Twitter
Paradox has 16 followers

Connect with Paradox

Trophy Case

  • 12-Year Club
  • x2
    Popular Game One of your games has over 1,000 players
  • Famous Game One of your games has over 10,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

19/44
How to earn trophies