Hey!
I like to control the character movement by a javascript call. Please help me with a simple snippet.
Best
https://editor.construct.net/#open=ghost-shooter-code ?
Sorry don't understand
This is a link to the JavaScript "Ghost shooter" example from Construct's start page that contains JavaScript code and shows how to control a character using JavaScript scripting.
The movement of the character is handled in the "MovePlayer()" function in the code and is commented.
Develop games in your browser. Powerful, performant & highly capable.
A cool! So I can go in to the console and right a function and the player is moved, for exemple? Do you have and function so I can test :)
Have you actually opened the example link ?
Have you read the Scripting feature manual article linked ?
All the informations you are asking for are in both of those.