Shooting Game Question


#1

We want to shoot bananas at monkeys. We want to press the space bar or mouse and shoot the banana, and aim at the monkey. Can someone please send me a sample script of this?


#2

Hi @Kelly_Nickell,

I’ve changed some code from the Penguin game to fit it to your theme. Feel free to remix the space below to learn how to create a banana throw behavior! The first scene is the CoBlocks implementation. The second scene is the scripting implementation.


#6

Stefan,

Thanks for the quick response once again. However, I can play the game, but I can’t remix it or see the code.


#7

NEver mind. It was because I wasn’t logged in!


#8

how to attach any dummy object to the camera? For example, attaching camera to throwTarget and throwStart in this case. When camera is moved, both the objects are moving here… how??? kindly help


#9

Hi @Raja_Mani!

Check out the video example below for a step-by-step guide :slight_smile: