tonycrew's Recent Forum Activity

  • There's a couple of Plugins for using Functions in the Plugin Section

    scirra.com/forum/plugins-for-construct-2_forum47.html

  • Yeh they look really good from the tutorial, this will be a great feature.

  • Thanks getting them now...

  • Thanks again for this brilliant pack...

  • I usually create a healthbar sprite...

    Then add a varaible.

    Healthbar = 100

    Then in events something like this.

    This set the healthbar sprite with to the Healthbar Variable which is 100, Using EveryTick to check this all the time.

    EveryTick

    Healthbar Sprite width = Healthbar

    Then the next bit deducts 1 from the heathbar variable when ever you collide with an enemy, Which in turn makes the Healthbar Graphic/Sprite Smaller.

    PlayerSprite OnCollision with EnemySprite

    Healthbar = Healthbar -1

  • Problem is, you need a new sprite for every angle :(

    Not if your on a Static Screen.. lol..

  • I would have done something like this.

    VariableStart = 0

    VariableA = 0

    If SpriteA collides with SpriteB

    Then VariableStart = 1

    If VariableStart = 1

    Every 1.0 seconds VariableA = VariableA +1

    Then you could add conditions...

    If VariableA => 100

    then VariableA = 100

    then VariableStart = 0

    If VariableStart = 0

    then VariableA = 0

    Or something like that, but hey i sometimes go the long way around... Not been on C2 for a month or so, so there's probably new and better ways to do this.

    You can just change it around to use SpriteWidth = 100 and SpriteHeight = 100 or whatever your size is, then deduct from them.

    VARIABLES

    SpriteWidth = 100

    SpriteHeight = 100

    SpriteShrink = 0

    EVENTS

    Setting the SpriteA Size to the variables

    SpriteA width = SpriteWidth

    SpriteA height = SpriteHeight

    Turning the Variable SpriteShrink to 1 or ON

    On Collision SpriteA with SpriteB

    SpriteShrink = 1

    Every 1 Second Deducting from the Width & Height Variables

    If SpriteShrink =1

    Every 1.0 Seconds

    SpriteWidth = SpriteWidth -1

       SpriteHeight = SpriteHeight - 1

    Destroying the SpriteA when size is 0 and resseting the SpriteShrink Variable

    If SpriteWidth =< 0

        SpriteHeight =< 0

         Destroy SpriteA

          SpriteShrink = 0

    It can be used to Rotate, Scale or any other thing you want to do. Hope you understand it... i come from a C++ background years ago so i approach things like this.

    You can change the Every 1.0 Seconds to Every 0.01 this will make it go alot faster and last for about 1 Second, But you will need to know your Sprites Width and Height and work it out from there.

  • Thanks for all the hard work..

  • Thanks for the fix

  • Great Game and Concept, i got to level 3 so far...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I got a Bamboo Touchpad so i can draww graphics and stuff, so far i find it great and easy to use, Also for navigating with instead of a mouse....

    As a bonus i also got the Starwars BluRay 9 disc set... can't wait to watch them...

  • yeh i use -10 or whatever number you want depending on the force.

    I used - in a game i made to create a wind effect and a magnetic effect.

tonycrew's avatar

tonycrew

Member since 30 Apr, 2010

None one is following tonycrew yet!

Trophy Case

  • 14-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

16/44
How to earn trophies