Jump to content


_175146

Member Since 04 Nov 2010
Offline Last Active Aug 30 2011 04:28 AM

Posts I've Made

In Topic: direction/dir to xy coords?

12 March 2011 - 12:06 AM

lengthdir... it looks useful..
MUST FIND TUT.... MUST FIND TUT...
:lol: jk, ill see if i can implement that something like if the distance from m is more than n, then lengthdir=whatever??

In Topic: direction/dir to xy coords?

10 March 2011 - 09:22 PM

NO, i need it to be CONFINED! i am using point_direction, what i'm asking is how do i keep it from being able to be dragged all over the screen: what im saying is not how do i retrieve the var, but how do i keep the 'knob thing' in a fixed ring, so you can drag it in a fixed circle, so it is always the same distance from the center, that way you can't drag it all over the screen! :rolleyes:

In Topic: screen spawn

10 March 2011 - 09:18 PM

srry- thats a good code btw. i havent really gotten the hang of cases and how to use them yet...

In Topic: screen spawn

04 March 2011 - 02:52 AM

this is a very simple trick. assuming you want it from anywhere on all sides in top-down, then here is the code:
//in the step event of your 'control' object
xr=random(room_width)
yr=random(room_height)
if yr=0 or yr=room_height 
{
if xr=0 or xr=room_width 
{
instance_create(xr,yr,obj_zombie)
}else loop
}else loop

the idea:
Spoiler

hoped that helped :D

In Topic: Minecraft-style crafting grid?

21 February 2011 - 02:48 AM

WOW thanks, I'm glad to see many suggestions! yeah, an array was what I was thinking. I'll try it and see what I come up w/. if it's good i'll post it somewhere...