Open 3D Rad.
Add a Sprite.
check, Detect mouse over event.

.
Click ok And Save it.
Than Add a Script Object.
Double click it.
Paste the code is there:
Add a Sprite.
check, Detect mouse over event.
.
Click ok And Save it.
Than Add a Script Object.
Double click it.
Paste the code is there:
void Main(){if(IN_1 > 0){ // This checks the mouse over flag for the particular spriteif(iMouseButtonDown(0)){// this checks if the mouse was clicked over the sprite//You put what you want to do OVER HERE when the button is clicked,iObjectShow(OBJ_22);iObjectHide(OBJ_44);iObjectShow(OBJ_66);iObjectHide(OBJ_88);iObjectHide(OBJ_0);//for example if you wanted to start this object}}}
linked it on your sprite.
No comments:
Post a Comment