Hello,
Im having trouble attaching a script to an object that bounces the player upward a certain amount when jumped onto. Can anyone help? Thanks…
Hello,
Im having trouble attaching a script to an object that bounces the player upward a certain amount when jumped onto. Can anyone help? Thanks…
You’d want a rigidbody on your player object, for starts. Then you need a way to tell if your player is on the trampoline (could use triggers, raycasts, or collision detection to name a few). Then once you’ve determined that you’ll need to tell the trampoline object to rigidbody.AddForce(0,upForceAmount,0); to your player object. Look up a few of those terms in the scripting reference and I think you’ll be able to make something fun and that you can be proud of having written.
Good luck!