[help] Destroy and respawn platform problem
networ
Member Posts: 89
Hi, I've got problem again . So, I've got attribute destroy.
In actor destroyable_platform i have a rule:
If attribute game.destroy = false - collide with actor player
Then if is player colliding with platform after 2 seconds destroyable_platform change self.color.alpha to 0 and game.destroy to true.
So, i've got another rule if game.destroy = true:
After 5 seconds change game.destroy = false
Spawn actor destroyable_actor
Destroy self
It works, but i have got problem with player position. When platform change alpha to 0 and is not collidable with player, platform dissapears, but player still stay in the same possition in the air. If i jump, he fall down and platform will respawn. I hope you can understand me . How to fix this?
Thanks. p.s. sorry for my english
In actor destroyable_platform i have a rule:
If attribute game.destroy = false - collide with actor player
Then if is player colliding with platform after 2 seconds destroyable_platform change self.color.alpha to 0 and game.destroy to true.
So, i've got another rule if game.destroy = true:
After 5 seconds change game.destroy = false
Spawn actor destroyable_actor
Destroy self
It works, but i have got problem with player position. When platform change alpha to 0 and is not collidable with player, platform dissapears, but player still stay in the same possition in the air. If i jump, he fall down and platform will respawn. I hope you can understand me . How to fix this?
Thanks. p.s. sorry for my english
Comments
Accelerate direction: 270 Relative to scene Acceleration:100
I'm making platform game and I have got working jumping...
.....I think I answered my own question......Unless there is a better way....