UnityNinja Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

UnityNinja CommunityLog in

UnityNinja - Video Game Development Community, including Resources, Forums, Marketplace & More.


I Need Help On A Script

power_settings_newLogin to reply
2 posters

descriptionI Need Help On A Script - Page 2 EmptyRe: I Need Help On A Script

more_horiz
Ninjaboy follower wrote:
Declare a float variable just above void FixedUpdate()

public float speed;

you can change this value in the inspector the larger number you assign the faster the object moves.

 Neutral Hi again, another error! Yay!  Very Happy  Not.  Mad One more compiler error, 
Unexpected symbol `void' in class, struct, or interface member declaration.

I put the public float speed; above the FixedUpdate() too by the way

descriptionI Need Help On A Script - Page 2 EmptyRe: I Need Help On A Script

more_horiz
Follow up to my last post, i put a comma instead of a semi colon. Dumb mistake on my part. But now I'm running into problems such as rigidbody I don't know how you want me to set it up.

descriptionI Need Help On A Script - Page 2 EmptyRe: I Need Help On A Script

more_horiz
Select the player(object) click Add Component -> Physics-> Rigidbody

descriptionI Need Help On A Script - Page 2 EmptyRe: I Need Help On A Script

more_horiz
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply