bobcgausa's Recent Forum Activity

  • As a new user, I noticed that there is no distanceSquared function.

    It is commonly used in comparisons because the result is the same as distance but is quicker without the sqrt call.

    Tagged:

  • thanks much.

    i was wondering about containers but hadn't gotten that far yet.

  • i have 4 instances of a rectangle sprite and 4 instances of a text

    on mouse left clicked on sprite --> Sprite Add to ClickCount 1

    text n should display sprite(n).ClickCount

    so System.Every tick --> Text.Set text Sprite.ClickCount everything works as expected

    It seemed to me that since the mouse click was selecting the nth Sprite, that it would be more efficient to move the Text.Set action under the on mouse condition with the expectation that only the nth Text would be set.

    however, it sets every Text???

    Then I added, if ClickCount>=3, the Sprite Opacity is decremented as intended

    Added an Opacity==0 Condition for Sprite to Destroy it, and added a 2nd action to destroy the Text.

    However, it destroys every Text.

    If I have paired instance such as 4 sprites and 4 texts, how can I manipulate only a pair at a time?

    [/url=https://drive.google.com/open?id=0B-YDf0p_IiqvbzNwa2pjQ3VWU1E]

  • you gave me the solution idea. thx.

    however, couldn't the instance set on shooter firing mess up if bullet stays inside shooter rectangle for more than 1 tick?

    since ricochet can only occur after hitting a barrier,

    i'll set to false when shooting, but set to true when a bullet hits a barrier.

    then if a bullet hits the shooter with instance false it must still be firing and can be ignored.

  • am implementing a ricochet example where if a bullet hits the shooter, the sprite dies or score decrements.

    the problem is that bullets overlap the shooter initially so the collision condition is true immediately.

    should collision tests be deferred until the bounding rectangle is cleared?

    I moved the image points outside the bounding rectangle to fix the problem, but it doesn't look as good.

    Any other suggested fixes?

    thx

  • Should the behavior always be used to destroy an object outside the layout?

    Is it more efficient than an event check or just a way of reducing clutter on event sheets?

    thx

  • thx for helping a nubie

    much appreciated

  • The template has 21 copies of the platform sprite, all have the name Platform.

    However, if I clone one to create a 22nd and try to name it Platform, I get an error message.

    The Instance Variable dialog shows no instances.

    How did those copies get made without creating 21 entries in the Project Bar?

  • The text effect dialog just lists the names of the effects.

    Has anyone created a cheat-sheet image that illustrates all the effects?

    thx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Flintstone, GA USA

    I found Construct investigating various game IDEs for K-12.

bobcgausa's avatar

bobcgausa

Member since 15 Sep, 2017

None one is following bobcgausa yet!

Trophy Case

  • 7-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

9/44
How to earn trophies