How Can I Change Platfom Color On Collision?

Discussion in 'How Can I...?' started by deenasty, Dec 21, 2016.

  1. deenasty

    deenasty Boxer

    Joined:
    Nov 8, 2016
    Messages:
    42
    Likes Received:
    10
    Hi all, I searched the forum but I could not find anything. How can I achieve this?

    Thank you all.
     
  2. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    There might be a better way than this. Have the 2 platforms on top of each other. When he touches the platform ,the first one is destroyed or disappears and you can see the second one
     
  3. deenasty

    deenasty Boxer

    Joined:
    Nov 8, 2016
    Messages:
    42
    Likes Received:
    10
    Thank you for your help, but i was hopping to find a better way to do it.
    Thank you again.
     
  4. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    You might can define platform as an enemy object with 0 damage and 999 health. Add damage animation to the health component, and make sure that the animation speed is 0. This way when you hit the platform with your character the damage animation shows for indefinite time...
     
    Kenway, tanvir8955, meremy and 2 others like this.
  5. deenasty

    deenasty Boxer

    Joined:
    Nov 8, 2016
    Messages:
    42
    Likes Received:
    10
    Thank you very much, the annimation time is what I have missed because when I did it it just flashes then it go back to the initial color.
    Your help is much appreciated.
     
    trudnai likes this.
  6. deenasty

    deenasty Boxer

    Joined:
    Nov 8, 2016
    Messages:
    42
    Likes Received:
    10
    I have a problem with this, once the charcter touches the platform it animates but the charcter is stuck and will not move.
     
  7. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    Instead of Enemy method trudnai said above, I think is more effective and will probably remove your stucking problem, is to add an advanced move to the object and add animation there. leave timeout 0, so it stays like that.
     
    deenasty likes this.
  8. deenasty

    deenasty Boxer

    Joined:
    Nov 8, 2016
    Messages:
    42
    Likes Received:
    10
    Thank you for your help, I tried your solution, but it does not animate. I set action to Collision.
    When I set the event to "on start" it does animate but I need it to animate only when the character touches it.
    Regards.
     
  9. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    which bb version you are using. It does not animate on collision in older but BB 2.2.5 it works fine. I had that problem too. Update to 2.2.5 and it will work.
     
  10. deenasty

    deenasty Boxer

    Joined:
    Nov 8, 2016
    Messages:
    42
    Likes Received:
    10
    I have the last version 2.2.8
     
  11. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392
    Do you only want to change the color when touching or when you no longer stand on it again the old color?
     
  12. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392
    The first so if you touched another color would be easy. But the old color back will be rather hard
     
  13. deenasty

    deenasty Boxer

    Joined:
    Nov 8, 2016
    Messages:
    42
    Likes Received:
    10
    I need to change it once touched, and I don't want it to change back to the original color.
     
  14. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392
    I make a Video give me a Little bit Time i Have an Idea
     
    deenasty likes this.
  15. deenasty

    deenasty Boxer

    Joined:
    Nov 8, 2016
    Messages:
    42
    Likes Received:
    10
    Thank you very much
     
  16. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392


    In the description, the bbdoc is also included
     
  17. deenasty

    deenasty Boxer

    Joined:
    Nov 8, 2016
    Messages:
    42
    Likes Received:
    10
    Wow that was quick, thank a lot. I will test it :D
     
    Zulkarnain Rahmat likes this.
  18. Phoebe

    Phoebe Serious Boxer

    Joined:
    Aug 9, 2016
    Messages:
    667
    Likes Received:
    392
    I hope that is what you want :)
     
    Zulkarnain Rahmat and Jaky1 like this.
  19. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    @Phoebe You are awesome, and love your video responses and help. :rolleyes:
     
    Phoebe and Jaky1 like this.
  20. Jaky1

    Jaky1 Serious Boxer

    Joined:
    Aug 22, 2016
    Messages:
    523
    Likes Received:
    142
    @Phoebe Very nice of you to help with even videos. ;)
     
    Phoebe likes this.

Share This Page