This is the testing Godot forums! All forum posts unique to this forum will be deleted! Please use the main forums here for any posts you want to keep. All forum rules still apply.

getting InvalidCastExeption following Dodge the creeps tutorial

tryingmybesttryingmybest Posts: 2Member

hi there
the line "RigidBody2D mobInstance = (RigidBody2D)mob.Instance(); " causes the exeption and I don`t know why

project link: https://drive.google.com/drive/folders/1o0MHTOqbiwlaAugUj9ioB4jKR5BchsMB?usp=sharing

Comments

  • TwistedTwiglegTwistedTwigleg Posts: 2,561Admin

    This discussion was caught in the moderation queue since you have not confirmed your account yet.

    Upon creating your account you should have received an account verification email. The confirmation email may have been incorrectly flagged as spam, so please also check your spam filter. Without confirming your account, future posts may also be caught in the moderation queue. You can resend a confirmation email when you log into your account if you cannot find the first verification email.

    If you need any help, please let us know! You can find ways to contact forum staff on the Contact page. Thanks! :smile:

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.