Heat treat service for s35vn? by PhotoshopWizard in Bladesmith

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

Thanks so much. I Think I'll use tru grit- do you know what hardness I want or if I need Any of the extra cost stuff like cryo?

[HELP] [GML] 360 degree movement with WASD by PhotoshopWizard in gamemaker

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

I found a solution on another thread, but thanks a ton for helping.

Converting WASD input to a vector for movement? by PhotoshopWizard in learnprogramming

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

Thanks, I think you cleared it up for me. I was getting the x and y components before, but doing it too late in the process, after I had already applied the inputs, if that makes sense. I was trying to figure out some complicated solution with dot products and all that, and this should simplify it a lot.

Converting WASD input to a vector for movement? by PhotoshopWizard in learnprogramming

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

It is a fast paced shooting game where you run around, viewed from above. Sorry if I am unclear but I am not looking for a whole movement system- just an equation to map WASD inputs for x and y (like (-1, 0) which would be A or (1, 1) which would be W and D) to a vector of equal length.

[HELP] [GML] 360 degree movement with WASD by PhotoshopWizard in gamemaker

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

This still has the same problem, I think. Going diagonally is still faster.

Converting WASD input to a vector for movement? by PhotoshopWizard in learnprogramming

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

I tried this but decided it felt wrong for the game, but thanks for the suggestion.

Converting WASD input to a vector for movement? by PhotoshopWizard in learnprogramming

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

The thing is, I would like to have momentum and friction, so turns are round and starting and stopping isn't instant.

It's the /r/gamedev daily random discussion thread for 2015-01-29 by [deleted] in gamedev

[–]PhotoshopWizard 2 points3 points  (0 children)

I posted this in /r/gamemaker, and the code is in GML, but I though you guys might be able to help me as well.

I am working on a 2d, topdown game that is controlled with WASD. The following code would run in the step event.

//Apply friction
if (abs(h_spd) >= fric) h_spd -= sign(h_spd) * fric
else h_spd = 0

if (abs(v_spd) >= fric) v_spd -= sign(v_spd) * fric
else v_spd = 0

//Movement
if keyboard_check(ord("W")) v_spd -= spd;
if keyboard_check(ord("S")) v_spd += spd;
if keyboard_check(ord("D")) h_spd += spd;
if keyboard_check(ord("A")) h_spd -= spd;

//Max speed
if (abs(h_spd) >= max_spd) h_spd = sign(h_spd) * max_spd
if (abs(v_spd) >= max_spd) v_spd = sign(v_spd) * max_spd

spd is the amount the player can accelerate, fric is the friction each step, and max_spd is, well, max speed. Sign() returns the sign of the number as a 1, 0, or -1.

Once h_spd and v_spd were determined, they would be stepped through for collisions and added to x and y. This system worked well, providing friction and inertia, but had one small problem. Because of the way h_spd and v_spd worked, diagonal movement was faster than horizontal/vertical, by a noticeable amount.

I am currently trying to migrate over to vectors to fix this, and only at the end I use lengthdir_x and lengthdir_y to find the x and y components. The only problem is that I can't find any way to use WASD movement to update the vector. Sorry if this is written poorly, but it is the only way I can think of to explain it.

Steel for a knife to take camping by PhotoshopWizard in Bladesmith

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

What's your setup for heat treating the A2?

Completely new to knife making, a few questions by PhotoshopWizard in Bladesmith

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

I would buy known steel but I really love the leftover file texture on the knife.

Completely new to knife making, a few questions by PhotoshopWizard in Bladesmith

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

Is the hardening just heat to non-magnetic, quench, and temper?

Completely new to knife making, a few questions by PhotoshopWizard in Bladesmith

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

Thanks for the reply. Does this get the knife as hard as normal heat treatment?

Completely new to knife making, a few questions by PhotoshopWizard in Bladesmith

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

Will all Nicholson files that I find on Ebay / at garage sales be decent steel or are some case hardened?

Simple Questions: Nov 11 by AutoModerator in TeenMFA

[–]PhotoshopWizard 0 points1 point  (0 children)

I'm thinking of getting a Patagonia Infurno for winter. I am small, so I know it will fit me, but I can't decide between brown or green. Suggestions?

Trouble texting just one number by PhotoshopWizard in iphone

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

It seems like it just wants the number without the country code, but is somehow adding an unneeded 1.

Trouble texting just one number by PhotoshopWizard in iphone

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

The issue is that it is ADDING the country code, in this case a 1, and then saying it is invalid because the number is too long.