- Home /
Is there another way of counting Scores (points) instead of Colliding (destroying)
Hello Everyone! I was wondering if there is another way to count points instead of Collision (destroying).
For example:
i am not destroying objects in my game i am just changing the color of an object for that i want give 1 point. If there is no other way than doing colliding (destroying). So how can i do to destroy an object and replace with another object. but i will have several same objects in my scene so on any object i click it destroy and replace with object that i will give. not like when i click all objects replace with other objects. One click one object destroy (the one i clicked on) one object replace.
thanks for those who help.
Answer by Digital-Phantom · Mar 17, 2015 at 05:57 PM
You don't need to destroy. Use a combination of mouseOver with mouseButtonDown. Or simply just use a Boolean to see if that object has been clicked on(over) and add points that way.
Alternatively just do as you suggested, destroy the object and immediately replace it with a similar object. I can't see this being any more resource heavy than other ways (unless maybe your doing hundreds of objects at the same time)
;)
Thank you so much for quick reply Digital Phantom On$$anonymous$$ouseOver method is working. i don't know how to add point with Boolean so i didn't try for that... anyway Thanks for help
Your answer
Follow this Question
Related Questions
Question about Point adding / Destroying after collision. 0 Answers
Scoring (i'm stuck) 3 Answers
object destroy and scoring points 1 Answer
Score added on collision with another player 0 Answers
Collision and score 1 Answer