im making a simple city tycoon and i have grass and a house button and when you click the house button you can click the grass and it becomes a house then people move in i need when you mouse over it but dont click it turns into a preview of a house
Last edited by ZombieHappines (2012-07-23 23:54:36)
Offline
the script is...
when gf clicked forever if <touching mouse-pointer v> switch to costume [your house preview costume v] else switch to costume [your grass texture v]
Last edited by hunter6690 (2012-07-24 00:24:17)
Offline
bullelk12 wrote:
that's almost exactly what I would do, it works
Yep i used it in muh OS about 8 times
Offline
hunter6690 wrote:
the script is...
when gf clicked forever if <touching mouse-pointer v> switch to costume [your house preview costume v] else switch to costume [your grass texture v]
i want to click the house button then it previews so i have the house button when clicked broadcast house and this is what i have for the grass
when i receive house forever if <touching mouse-pointer v> switch to costume [house v] else switch to costume [grass v]and this doesnt work because it doesnt turn off when i click to buy the house so it turns back to grass when i move the mouse away
Last edited by ZombieHappines (2012-07-24 12:16:42)
Offline
I would like to look at your project and help you with that, but from what I can see, the problem with the script is that if the sprite isn't being touched by the mouse pointer, it will automatically turn into the grass costume, causing this glitch.
When gf clicked forever if <touching [mouse pointer v]?> switch to costume [preview of house v] show end if <<touching [mouse pointer v]?> and <mouse down?>> switch to costume [bought house v] show end script end if <not <touching [mouse pointer v]?>> hide endI hope that this script helps!
Last edited by ErnieParke (2012-07-27 10:18:30)
Offline