Unity dev here, I'm trying to access a value from NetworkClient (docs.unity3d.com/ScriptReference/Networking.NetworkClient.html), but an error shows up saying 'An object reference is required to access non-static member'. The exact line of code is this: Console.Log("Server started on IP" + NetworkClient.serverIp;
I appreciate any help, couldn't find anything on google regarding this specific class and how to access it.
William Bennett
Nothing spoopy in this webm. Move along.
Nathaniel Bell
>gem what the fuck is wrong with me, it should have been jam
Lucas Garcia
sugardev why do you tease us with your large amounts of progress and then do a 180 and become nodev for months at a time
Robert Bell
Looks like the serverIp variable in NetworkClient is not static. Presumably you need to an instance of the NetworkClient to access it.
Hudson Hughes
only if you post lewds
Aiden Brooks
>too spooped to open it
Good game user, 10/10
Oliver Morales
Reposting
Halloween bullet hell game work in progress, currently has 2 playable levels.
Bugs, feedback, i can't draw, change the fucking bullets already, etc. Also I know I'm several months early.
Jayden Edwards
Is New Game the new Umaru in this general?
James Ross
Yeah apparently I need to use 'new' keyword in some way? NetworkClient exists for sure, I can connect to the server and all, it's just that I can't retrieve this value.
Brody Martinez
Not really, I just aim to finish my main project before starting a new one.
Jason Cruz
Does anyone know how to solve this? l've been thinking about it for 15 minutes and the fact that the angles can be negative and once an angle hits 360 or -360 goes back to zero fucks up my mind
either G,B or α can be any number between -360 and 360
l'm trying to do an small AI for the enemies to detect the player, G is supposed to be the angle where the enemy is looking, α the view range of the enemy, and B the angle between the player and the enemy
Brandon Hughes
...
Brandon Russell
fuck, now I have to make some progress.
Kevin Williams
>i can only see when i stop moving, have to let my eyes get a good exposure time
Logan Barnes
Music is 40% of a game. Nothing beats the first time I entered QuasiSpace and heard this: youtube.com/watch?v=rCetN193LmI I still get teary-eyed listening to it.
Lincoln Mitchell
>AGDG-tan will never seduce you the the point of lunacy but then only fug when you make progress
Never has a feel felt more bad
Connor Foster
Yes, create a new NetworkClient field and then use the constructor to create a reference.
Essentially something like this.
Nicholas Allen
Wow, what a dignified way to die
Caleb Allen
You might want to check out the atan or atan2 functions.
If the angle between the center line of the enemy and the hero's position is greater than the overall FOV of the enemy, the the enemy does not see him. If it's smaller, then he does.
Search for getting an angle between two points on StackOverflow or MathOverflow.
Jace Barnes
Its to prevent VR-sickness, in the headset you can see quite well even when it looks completely black on the webm. You'll be able to turn it of if you aren't affected by it.
Adam Johnson
...
Samuel Bailey
I love you, user. Thanks a lot.
Aaron Evans
Okay, you fucked up your diagram (mixed up G and B in different places) but going by your actual post, what you want to do is calculate P = B - G, then normalize P to the range (-180 .. 180). You can do this with the % operator (or the fmod function, depending on your language): > P += 180 > P %= 360 > P += 360 > P %= 360 > P -= 180 Steps 3 and 4 are only needed if the % operator can return negative numbers.
Anyway, once you've calculated P this way, you can check abs(P) < Alpha, and bob's your uncle.
Camden Wilson
Curious, can you make a webm of the same thing without that feature?
Ian Johnson
Create a 2d vector, store the AI's position in it and then subtract the player's position. The magnitude of the vector is the distance between the AI and the player, the angle of the vector is the atan2 of the Y and X components of the vector (returns radians, multiply by 180/Pi to get degrees).
All you need to do next is check if the result is greater than your lower bound and less than your upper bound.
John Butler
game design (i think) question
If I am making a 2D game using AABB for collision (and it's working correctly thus far), when an object lands on the floor, what should it's velocity/ySpeed be? I set it to a positive number above zero, so that the fall looks better if they walk off the platform, but should it be zero?
There's a cut fyi so the video jumps so you didn't have to see me walk all the way.
Jace Clark
zero, but don't make the fall speed linear
Chase Rogers
what do you mean by "unless you want it to bounce"? the object jumps and falls
Samuel Ramirez
For you
Julian Wilson
Bouncing objects, such as rubber balls are done by multiplying the velocity by a negative value, eg -0.7 rather than setting it to zero.
Leo White
How many spoopy games do we have again?
Grayson Phillips
my formula for gravity is
ent->vel[1] += value_gravity * timestep;
vel[1] is simply ySpeed, value_gravity is 6, and fixed timestep reports 0.16
Julian Wilson
tell me there is more
Jaxon Turner
Anyone know when this year's advances in real time rendering go live?
Elijah Nguyen
1, I think.
Sebastian Lopez
Only this one. But, of course, I have various other lewds about other fine /agdg/ women.
By the way, where's the color picker tool in Aseprite? You know, the one which tells you which color is used at a given pixel?
Adam Diaz
Press Alt
William Long
>Bought a mechanical keyboard last week so i can code better >Haven't done any work yet
If only I had talent.
Brandon Johnson
> tfw stress is eating into devtime > tfw might have to move out > tfw might kill self
I don't even want to dogpost anymore
Justin Hughes
define "spoopy", because I think it's zero
>programming >talent
Matthew Rogers
>Have talent >Remember that I don't have any discipline so I never work
Elijah Sullivan
>talent There's that word again.
Christian Wright
I accidentally made a boss.
Tyler Scott
Thanks!
Is it ok to use it, by the way, if I just downloaded a compiled version, and didn't compile it by myself?
Christian Flores
>tfw will never have the balls to kill myself >still hold onto the hope that I'll just die soon
Good luck user, hope it's better on the other side
Anthony Lee
...
Jace Gonzalez
Whoops looks like I dropped something. I'll just go ahead and pick that up now.
Elijah Bell
>Particles aren't in world space
Owen Powell
Yes. > 3. You may copy and distribute the Program (or a work based on it,
Jayden Cruz
By OK what do you mean?
It's free if you compile it yourself, the dev sells it essentially as a charge for assembly, but getting it for free already set up is fine I suppose, if you're that concerned either learn how to compile it or just buy it.
Hunter Brown
Thank you! Here's a lewd in return.
Parker Gonzalez
fixed, ty
Grayson Walker
If I find it useful, I might buy it later on. Compiling it on Windows is a nightmare. I was trying to make it work for 6-7 hours before I gave up.
Here's your lewd.
Hudson Perry
If whoever does this doesn't make spoopys lamb into a slut I will be very disappointed.
Jack Davis
1-5-7 Dev 2-4-8 Art 3-6-9 Fun 0 GFA
Isaac Anderson
But devving and artist IS fun!
Kevin White
1,3,5,7,9 - Dev 2,4,6,8 - Shower 0 - Fap
Matthew Jackson
>make tons of progress >never show it to agdg >finish shit >show agdg >get told to fuck off >remember that only making progress and finishing because never bother with agdg >still put little nods to agdg in games
Mixed feels, yo.
Samuel Brown
Rolling for the next 10 minutes of your day? Not very productive.
Jaxson Stewart
>Things that never happened: The Post
Chase Taylor
Which means you can dev/art even if you roll fun!
Austin Williams
Just post more frequently and people will stop calling you a whodev, it's a rite of passage of sorts.
Jose Lopez
here's the version with the fixed face
Jeremiah Price
Worldgen is coming along better. I think I need to make the rooms not move so linearly, maybe I'll do something so they fill in the empty spaces better.
Thomas Wilson
Spawn them in a random point in a circle instead of always in the middle.
Luke Brown
I'll roll again after my fap
Zachary Ortiz
don't do it fattie
Isaiah Garcia
I am new around here but someone told me "if you post progress you're part of the community"
So post more progress
Adrian Turner
>when you try to just like make progress but your head is empty and cant focus because of this heat
Luke Cruz
>never bother with agdg Best thing a dev can possibly do.
>never bother with agdg Good Do you really want to bother with threads upon threads of source shitposting? All the good devs left long ago, no one in the recaps will ever amount to anything substantial.
Josiah Smith
Hey, that's my code. Here's revision two, 100% less if statements, 100% art.
Hunter Foster
Made a new weapon, it's a laser fired from the left or right side. It has a little wind up phase where all the turrets light up before it fires to give the enemy players a chance to react and get out of the way. The hitboxes are far from perfect atm, but how do you guys think it looks?
Connor Garcia
why
Dylan Martinez
Looks like three friends pissing next to each other in the urinal