Jump to content


Andy

Member Since 04 Oct 2003
Offline Last Active Yesterday, 05:39 PM

Topics I've Started

*SOLVED* I need some help,

21 September 2012 - 06:20 PM

I’m working on creating a line that will go, from the back of my character’s weapon, to the front. The character rotates 360 degrees, so I am using the lengthdir_x/y functions to set the line’s x1, y2, x2, y2 arguments. My problem is I need the line to go down 7 pixels to fit on the weapon, not just project itself straight out of the head. I have tried:
draw_line(x+lengthdir_x(1, torso_angle), y+lengthdir_y(7, torso_angle-90), x+lengthdir_x(32, torso_angle), y+lengthdir_y(32, torso_angle));
This makes the back end of the line set in the lowered position (on the weapon), but I can’t figure out how to get the front line to lower.

Image for reference:
Posted Image

All help appreciated! :happy:

Multiple views broke?

15 September 2012 - 10:05 PM

Look at the difference between multiple views in 7 and multiple views in GM: Studio:
https://www.dropbox.com/s/j1546cdsmlhasm6/view.zip
ZIP contains: view.gmk, view.exe (if you don't have 7), and view.gmx

Is this a bug, or has GM: Studio changed something?

Edit:
Posted Image
In Game Maker 7 you can have 2 views, as pictured above, view[1] drawing on the top of view[0].
Now, in GM: Studio, view[0] is ignored and all that displays is view[1].

*UNSOLVED* Capture rectangle continuously,

15 September 2012 - 05:24 PM

How would I capture an area of the screen, (like how you can capture one to create a sprite from the screen), but instead save it to a surface?
Specifically, I need a box to be continuously captured based on the mouse_x and mouse_x coordinates.

Basically I need something like:
" surface_create_from_screen(x, y, w, h); "

My question explained via an image for clarification:
Posted Image

4: So I can project the scope area without is scaling.


All help is appreciated, credit will be given! :smile:

If you need any details, or the GMX, feel free to ask!


Do imported sprites save,

13 September 2012 - 06:24 PM

When I load external sprites they seem to blur, or smooth differently, than when I load them into the editor.

Notes:

- I have my texture page maxed in the global game settings.
- I have my default texture page set to never scale.
- I am using sprite_add (not replace).
- I add the sprite in the first room, a room dedicated to loading.

Do added sprites go onto the default texture page?

How will GM: Studio,

09 September 2012 - 12:24 AM

In older versions of Game Maker, when you made a large project with hundreds of sprites, sounds and etc, the editor would begin to have issues handling such a large load. You can get around this with external resource loading. But now that GM: Studio keeps its files in external folders I was wondering if that problem still exists. Can I put hundreds of resources into GM: Studio without it having issues with lagging the editor now?

All help is appreciated. :smile: