UPBGE Interface Demo2 (Notlösung)




Link zum Demofile2: https://filehorst.de/d/dqlDikCl
Script:
———-

import bge
import DRGTest #Mit dem Namen deines eigenen Scripts ersetzen

def run_button():
cont = bge.logic.getCurrentController()
run_button = cont.owner
mouse_over = cont.sensors[‘MouseOver’]
mouse_click = cont.sensors[‘MouseClick’]
hitobject = mouse_over.hitObject

#print(hitobject)

if hitobject == run_button and mouse_click.positive:
DRGTest.init()

Voir sur youtube

KA2Studio
Logo
Compare items
  • Total (0)
Compare
0