- Game Maker Community
- → Viewing Profile: Posts: acrog2
acrog2
Member Since 03 Mar 2007Offline Last Active Nov 17 2012 04:17 PM
Community Stats
- Group GMC Member
- Active Posts 1118
- Profile Views 2129
- Member Title average user
- Age Age Unknown
- Birthday April 16
-
Gender
Male
-
Location
self.x,self.y,self.z
2
none
Latest Visitors
Posts I've Made
In Topic: Whats wrong with my script?
12 July 2010 - 02:56 AM
no
In Topic: Whats wrong with my script?
12 July 2010 - 02:26 AM
centerX = center of the "circle" where the other circles are drawn around
example values: x, 200, 700, room_width/2
centerY = same for the Y
example values: y, 200, room_height/2
radius = how far from the centerX/Y the circles are draw
example values: 200, room_width/4
angle = don't mess with this, its used in the for loop. it is the position around the "circle", and tells where the other circles
r = the radius of the circles to be drawn. Different from radius.
example values: 5, 10, 200
xx = calculated x value for the circle to be drawn
yy = calculated y value for the circle to be drawn
outline = whether or not to draw the circle filled or empty
example values: true, false, 0, 1
hope that helps clear some things up
-acrog2
example values: x, 200, 700, room_width/2
centerY = same for the Y
example values: y, 200, room_height/2
radius = how far from the centerX/Y the circles are draw
example values: 200, room_width/4
angle = don't mess with this, its used in the for loop. it is the position around the "circle", and tells where the other circles
r = the radius of the circles to be drawn. Different from radius.
example values: 5, 10, 200
xx = calculated x value for the circle to be drawn
yy = calculated y value for the circle to be drawn
outline = whether or not to draw the circle filled or empty
example values: true, false, 0, 1
for (angle=0; angle<360; angle+=step) //loop through all 360 degrees, drawing a circle every [i]step[/i] degrees
{
xx = centerX + lengthdir_x(radius,angle); //compute the x value for the circle to be drawn
yy = centerY + lengthdir_y(radius,angle); //compute the y value
draw_circle(xx,yy,r,outline); //draw the circle
}
hope that helps clear some things up
-acrog2
In Topic: speed in direction
08 July 2010 - 02:08 PM
But remember that that only works when the planet is stationary (does not move).
point_distance(x,y,px,py)- point_distance(xprevious, yprevious,px,py)-acrog2
Yeah, there was a reason why I suggested to do two the same measurements in thwo step-events (before and after the player and the planet where moved) and than subtract one from the other
point_distance(x,y,obj.x,obj.y)- point_distance(xprevious,yprevoius, obj.xprevious, obj.yprevious)
In Topic: Copying text from another window
07 July 2010 - 09:57 PM
you can use these functions:
-acrog2
The following functions deal with the clipboard for storing text.
clipboard_has_text() Returns whether there is any text on the clipboard.
clipboard_get_text() Returns the current text on the clipboard.
clipboard_set_text(str) Sets the string str on the clipboard.
-acrog2
In Topic: MMORPG Engine
07 July 2010 - 08:25 PM
yes. It is most definitely possible.
- Game Maker Community
- → Viewing Profile: Posts: acrog2
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content

