I have Gamemaker lite and I'm using drag and drops.
Please help me.
Edited by Supertoad25, 14 September 2011 - 02:55 PM.
Posted 14 September 2011 - 02:55 PM
Edited by Supertoad25, 14 September 2011 - 02:55 PM.
Posted 14 September 2011 - 03:04 PM
Posted 14 September 2011 - 03:06 PM
if place_meeting(x,y+1,"your block object name")
//your collision code
//example:
{
vspeed=0
gravity=0
}
if you are lazy to learn GML
if place_meeting(x,y+1,"your block object name")
if y+sprite_get_yoffset("your sprite name") < instance_place(x,y+1,"your block object name")
//your collision code
//example:
{
vspeed=0
gravity=0
}
(maybe)
Edited by Gangsterman, 14 September 2011 - 03:10 PM.
Posted 14 September 2011 - 03:40 PM
You can check whether the y position of the object is lower or higher than the y position of the block.
If the y position of the object is higher, you just make the block solid.
Posted 14 September 2011 - 04:14 PM
With D&D-actions?
You can check whether the y position of the object is lower or higher than the y position of the block.
If the y position of the object is higher, you just make the block solid.
What is the best way to do that?
Posted 15 September 2011 - 10:14 PM
With D&D-actions?
Something like this:
Variable: "y" / Value: "obj_player.y" / Operation: "Larger Then"
![]()
Variable: "solid" / Value: "true"
![]()
![]()
![]()
Variable: "solid" / Value: "false"
I hope that works...
Posted 16 September 2011 - 02:05 PM
Maybe you mean something like this:Anyways, do you know how to randomly assign an number to an variable then check to see what number it is? also make it an certain range of numbers?
Edited by Zwetbaba, 16 September 2011 - 02:06 PM.
Posted 24 September 2011 - 10:45 PM
Maybe you mean something like this:Anyways, do you know how to randomly assign an number to an variable then check to see what number it is? also make it an certain range of numbers?
Variable: "<Any>" / Value: "floor(random(61))"
This returns, for example, a number between 0 and 60 (never 61).
Posted 25 September 2011 - 08:07 AM
0 members, 0 guests, 0 anonymous users