Lengthdir Shortcut, very useful!

Posted by Killpill28 on July 19, 2007, 4:02 p.m.

http://www.64digits.com/download.php?name=Lengthdir_Shortcut.zip&id=20415

I have just made this program, it is pretty much done though.

Purpose of the program:

I make TD games a lot, really, I never make platforms. Almost of these are war shooters and need lengthdir to place the guns in the players hands, and make it stay their when the player rotates. But this takes time, and lots of loading before you know if you got it "perfect". This program makes it fast and easy.

How to use:

First off, you will need the player sprite(ex: the guy holding the gun) and it's x and y origins. I STRONGLY recommend you use Game Maker to find these. Once you have done that, do the same with the object sprite(ex: the gun)

Then use the arrows near the bottom to move the "gun sprite", you can also click the box showing the numbers to change it manily, once you think you have it just right, click "test" to see it when rotating.

If you are satisfied with the placement, click "code" to see the code.

Bugs:

Do to lack of knowledge I cannot allow you to copy the codes in the program when it shows it to you. You must open the file "code.txt" to copy and edit it. Hopefully this will be fixed soon.

I would love some replies for this!

Edit:

I made a new desktop for my PC anyone like it?

http://64digits.com/users/Killpill28/newdesktop.PNG

Comments

s 17 years, 4 months ago

clipboard_set_text()

ultim8p00 17 years, 4 months ago

whoa. nice progy you got there. I make 2d shooters, but they use mouse-aim so it's kinda similar. I use a very different method to get the same results. What I do is that I position the sprite origin of the gun as if the player was it's center. Then I asign the X of the gun to the X of the player and the Y as well. Since I use image_xscale to switch from left to right, when the player is facing left I subtract 1 from the x and y. It works flawlessly. But this program is very easy to use, good job.

Killpill28 17 years, 4 months ago

Thanks, I did not use clipboard_set_text() because the user would lose understanding of code, and I was only going to keep this for myself, but with about 3+ more hours of work, the public got it tooXD

NeutralReiddHotel 17 years, 4 months ago
blue213 17 years, 4 months ago

It doesn't seem to load the player sprite, but the gun works fine.

Killpill28 17 years, 4 months ago

Use your own pictures, I know of that, it is the file….I thought I fixed it.

IdiotProof 17 years, 4 months ago

Thats an awesome little tool you got there.

Killpill28 17 years, 4 months ago

Thanks