MUST FIND TUT.... MUST FIND TUT...
- Game Maker Community
- → Viewing Profile: Posts: _175146
_175146
Member Since 04 Nov 2010Offline Last Active Aug 30 2011 04:28 AM
Community Stats
- Group New Member
- Active Posts 72
- Profile Views 2293
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
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...
jk, ill see if i can implement that something like if the distance from m is more than n, then lengthdir=whatever??
MUST FIND TUT.... MUST FIND TUT...
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!
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:
the idea:
hoped that helped
//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
basically it makes it generate an xy randomly in the room. then it checks to see if it is at the edges. if it is, then it creates 'obj_zombie' there. if not, then it repeats the process until it finds one. this is a basic code, but with dome advanced tweaking it could run much faster.
basically it makes it generate an xy randomly in the room. then it checks to see if it is at the edges. if it is, then it creates 'obj_zombie' there. if not, then it repeats the process until it finds one. this is a basic code, but with dome advanced tweaking it could run much faster.
hoped that helped
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...
- Game Maker Community
- → Viewing Profile: Posts: _175146
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content