Guides:How to Make a Jump Button
From Castle Wiki
Revision as of 09:10, 7 July 2022 by Lukalot (talk | contribs) (Lukalot moved page Jump button to Guides:How to Make a Jump Button: Page is not a factual page but instead a guide)
Jump button is a form of custom controls these are the steps in making jump button
- Icon
Jump buttons usualy need icon in order to be visible a traditional jump button is simply a arrow in a square facing up, but you can customize this however you want
2. Relative to camera
If you want the jump button to stay on the screen if the camera is moving at the bottom of general you will see relative to camera, turn that on
3. Code
The code should go as follow
When this is tapped
Tell actors with tag [tag]
If {this is colliding with} [tag]
Repeat [N] times
Modify {dynamic motion property velocity Y
to [-N] Relative to current value