Hi there,
So I've been trying to use the "Boxman" baseclass (featured in the demo platformer section) on some objects in an attempt to learn more of applying impulses (this being relevant to my current project) but I've reached a few hiccups. Obviously, the Boxman object's impulses are created from "Input.kd( ... )". These work for the arrow keys, etc, but what I've been attempting to do involves using mouse-downs on the stage, and potentially accelerometer motion. My main question is: how could you re-phrase the Boxman baseclass script so that it used some other input besides the keys, such as clicking the screen?
Thanks, anything helps.
So I've been trying to use the "Boxman" baseclass (featured in the demo platformer section) on some objects in an attempt to learn more of applying impulses (this being relevant to my current project) but I've reached a few hiccups. Obviously, the Boxman object's impulses are created from "Input.kd( ... )". These work for the arrow keys, etc, but what I've been attempting to do involves using mouse-downs on the stage, and potentially accelerometer motion. My main question is: how could you re-phrase the Boxman baseclass script so that it used some other input besides the keys, such as clicking the screen?
Thanks, anything helps.