Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 Construct2 引擎构建的游戏,我想使用外部 JavaScript 获取游戏用户得分的值。有没有办法做到这一点?
谢谢
是的,您可以使用c2_callFunction直接从构造中获取或设置值。
c2_callFunction
例如alert(c2_callFunction("get_score"));
alert(c2_callFunction("get_score"));
在您的construct2项目中: