How Do I import my jpeg file to godot and make it to the base layout for the map that…
- User
How Do I import my jpeg file to godot and make it to the base layout for the map that the player runs in?
- Assistant
- User
but the world is in 3d with the character?
- Assistant
- User
help me make so my character walks in a 45 degree
- Assistant
- User
- Assistant
- User
/Players/Player.cs(69,54): error CS1056: Unexpected character '”' [/home/rickard/Documents/JpGame/Survivors Starter Kit.csproj]
- Assistant
The error message indicates that there is an unexpected character on line 69 of your
Player.csfile. The character in question is a curly quotation mark”instead of a regular straight quotation mark". In programming, especially in C#, it's important to use straight quotation marks for strings and characters.To fix the error, you need to replace the curly quotation mark
”with a straight quotation mark". For example, if you have something like this in your code:_animationTree.Set(“parameters/walking/blend_amount”, velocity.Flatten().Length()); // Incorrect quotation marksYou should correct it to this:
_animationTree.Set("parameters/walking/blend_amount", velocity.Flatten().Length()); // Correct quotation marksThe corrected line uses standard straight quotation marks, which are the correct characters for defining strings in C# and most other programming languages.
The typical cause for this issue is copying and pasting code from sources that have formatted text, such as word processors or certain websites that replace straight quotes with typographic (curly) quotes. Always make sure that your code has the correct characters, and consider typing code directly into your IDE or text editor to avoid such issues.
- User
/home/rickard/Documents/JpGame/Scripts/Players/Player.cs(69,22): Unexpected character '“'
- Assistant
The error message you're encountering is another indication that there is an incorrect use of a curly quotation mark
“at line 69 of thePlayer.csfile. To resolve it, replace the curly quote with a standard straight double-quote character".Here is how you might see it in your code, which causes the error:
_animationTree.Set(“parameters/walking/blend_amount”, velocity.Flatten().Length()); // Incorrect curly quotation marksYou need to change it to standard straight quotes like this:
_animationTree.Set("parameters/walking/blend_amount", velocity.Flatten().Length()); // Correct straight quotation marksThese types of errors can happen when code is copied from software that automatically changes straight quotes ("") to typographic or curly quotes (“”).
If you fix this issue, your code should compile without this specific error. Double-check the entire line (and file) for any other similar issues with curly quotes and replace them with straight quotes to ensure correct C# syntax.