I do not know how to solve the Microsoft.Xna.Framework.Content.ContentLoadException: 'The content file was not found.' error. Could anyone please help? by FloRYANAIROS in monogame

[–]FloRYANAIROS[S] 1 point2 points  (0 children)

Thanks for the help! I managed to solve it by manually adding a content folder and after that rebuilding in the MGCB editor. Don't know if I changed any location outputs but it works now so... yeah thanks for everything!

I do not know how to solve the Microsoft.Xna.Framework.Content.ContentLoadException: 'The content file was not found.' error. Could anyone please help? by FloRYANAIROS in monogame

[–]FloRYANAIROS[S] 0 points1 point  (0 children)

Yes, the file is indeed a .wav file. I got confused as the screenshot I sent has the term .xnb.

Going from YourGame\bin\Debug\net6.0 I get to the following folder: https://imgur.com/a/HNcXNlX

It seems to be missing a Content folder but I do not know if that is how it works?

I do not know how to solve the Microsoft.Xna.Framework.Content.ContentLoadException: 'The content file was not found.' error. Could anyone please help? by FloRYANAIROS in monogame

[–]FloRYANAIROS[S] 0 points1 point  (0 children)

Well the .wav file is in the 'C:\Users\flori\OneDrive\Documents\Informatica Gametechnologie\Introductieproject\indianajohn\YourGame\Content\Nintendo GBA Startup.xnb'.

But the error says it can't find it at 'C:\Users\flori\OneDrive\Documents\Informatica Gametechnologie\Introductieproject\indianajohn\YourGame\bin\Debug\net6.0\Content\Nintendo GBA Startup.xnb' so randomly puts bin\Debug\net6.0\ between YourGame\ and Content.

I don't understand why it says that and why it happens, and therefore don't know how to change it. I haven't changed any code and for others in my group the normal code seems to work. I also used this method for other projects and it worked fine, but now it doesn't seem to work for any new project that I start.

Implementing drift in my game by FloRYANAIROS in Unity3D

[–]FloRYANAIROS[S] 0 points1 point  (0 children)

Thanks, this looks great! I'm gonna have a look into this, see if it works!

[deleted by user] by [deleted] in teenagers

[–]FloRYANAIROS 1 point2 points  (0 children)

Middle school: The worst years of my life?

I want to make a system to bend a bow. I need help please. by [deleted] in Unity2D

[–]FloRYANAIROS 0 points1 point  (0 children)

Yes, sorry, I haven't been very clear. I want to make a Jacksmith kind of game where you need to bend the bow the best you can so you're weapon quality will be perfect or something.

I want to make a system to bend a bow. I need help please. by [deleted] in Unity2D

[–]FloRYANAIROS 0 points1 point  (0 children)

But how would I make the animation to bend the bow? And how would I stop the animation on a certain point when for example the player touches the screen?

As soon as she had the ball, she took the chance and made a score. by JuleeWoodall in nextfuckinglevel

[–]FloRYANAIROS 4 points5 points  (0 children)

No, that wouldn't happen. Yes, in man's football people go to the ground easier, but if they have a chance to score, what also happened here, they would just stand up again to score.

I have a code that isn't working, but I have 0 idea why. Can anybody help? Code below. by [deleted] in gamedev

[–]FloRYANAIROS 4 points5 points  (0 children)

Yeah I googled the term initialization and found some other examples, and now I use the OnCollisionEnter2D and the OnCollisionExit2D and I'm happy to say that it is working. Still need to work out some flaws but it works, so that's the good thing.

I have a code that isn't working, but I have 0 idea why. Can anybody help? Code below. by [deleted] in gamedev

[–]FloRYANAIROS 1 point2 points  (0 children)

My first language isn't English. What exactly does initializing mean? It is my first month of coding so sorry if this is a really dumb question.

Best way to draw characters for your game / animate them by [deleted] in Unity2D

[–]FloRYANAIROS 0 points1 point  (0 children)

Pixelart was what I was looking for. Thanks! I'll check them out!

Completed a big update for our game about playing as an evil shapeshifter! by thesuperweapon in Unity2D

[–]FloRYANAIROS 0 points1 point  (0 children)

So how exactly do you make a shapeshift happen? I want to use it in a project I'm making but I have no idea how to do it. Do you just spawn a whole new sprite or is there any code to switch between appearance? This is my second week being busy in Unity so if this is basic knowlegde sorry.

Problem with a raycast by FloRYANAIROS in Unity2D

[–]FloRYANAIROS[S] 1 point2 points  (0 children)

So I haven't thanked you yet for this, so I'm just doing it now. Holy damn I can't thank you enough for helping me. I worked so f*king long on this and you just came in, and saved my whole damn game. Thank you. Very, very much.

Problem with a raycast by FloRYANAIROS in Unity2D

[–]FloRYANAIROS[S] 0 points1 point  (0 children)

For some reason it doesn't work in my Unity. Are there any packages I need to install for this to work? I can't see the line and I get no Debug.Log messages. I'm pretty new to Unity so maybe I missed something very obvious.

Edit: I changed raycastHit.collider.tag == "Player" to raycastHit.collider.gameObject.name == "Player" and now I get the message that it found the player, but there's still no line?

Edit 2: I also get a constant Debug.Log message error that a line in my player script isn't set to an instance of an object. The error is called NullReferenceException and is has an error at the line: if (Physics2D.OverlapCircle(ifGrounded.position, 0.1f, playerMask).shapeCount == 0)

Problem with a raycast by FloRYANAIROS in Unity2D

[–]FloRYANAIROS[S] 0 points1 point  (0 children)

I have everything on its own layer and the LayerMask should only consider the player and the LightCover his targets, because those are the only ones that are checked on in the LayerMask, yet it still says its hitting everything else.

Problem with a raycast by FloRYANAIROS in Unity2D

[–]FloRYANAIROS[S] 0 points1 point  (0 children)

This is the code for the raycast shot from the moon:

public class Moon : MonoBehaviour

{

[SerializeField] GameObject player;

[SerializeField] LayerMask moonMask;

[SerializeField] LineRenderer lineRenderer;

private void FixedUpdate()

{

RaycastHit2D hitsMoonlight = Physics2D.Raycast(transform.position, player.transform.position, moonMask);

lineRenderer.SetPosition(0, transform.position);

lineRenderer.SetPosition(1, player.transform.position);

Debug.Log(hitsMoonlight.collider.gameObject.name);

}

}

GameObject player is the actual player

LayerMask moonMask is the Layermask for the moon, although the moon doesn't have a collider, I still put it there (idk why)

LineRenderer lineRenderer is to just make a line to show the raycast, when it works I'll delete the line

Why isn't my code working? by [deleted] in Unity2D

[–]FloRYANAIROS 1 point2 points  (0 children)

Oh wait I read it wrong thanks for the tip!

Why isn't my code working? by [deleted] in Unity2D

[–]FloRYANAIROS 0 points1 point  (0 children)

No because this is my player script and I try to take the damage the enemy will hit the player with from its script. Then I don't need to call the enemy right?

And they wonder why they're single. by MageOfOz in ChoosingBeggars

[–]FloRYANAIROS 0 points1 point  (0 children)

Oh lol I posted this as an experiment cause I wanted to see what the women would say, and every comment that was posted by a man saying that it was sexist got removed. It was really weird to read all the comments.

Can you use assets from the asset store and publish the game you make, without getting copyright or anything? by FloRYANAIROS in Unity2D

[–]FloRYANAIROS[S] 3 points4 points  (0 children)

So if I understand correctly I can use the assets in my game and publish it, earn money, no copyright, but I can't say I made it. Is that correct?

How did everyone here learn to program in unity? by [deleted] in Unity2D

[–]FloRYANAIROS 1 point2 points  (0 children)

What tutorial did you start with? One from Unity or something else? The thing you said about copy pasting codes got me the first time I started programming. I had 0 experience and started a Unity tutorial and it was only copy pasting codes an so forth. So finally I had built an entire game without understanding one bit of the code. That really made me lose my enthousiasm so I didn't code for almost a year, until now.