Jump to content


Photo

mp_potential_step doesnt work


  • Please log in to reply
No replies to this topic

#1 12warr12

12warr12

    GMC Member

  • GMC Member
  • 678 posts
  • Version:Unknown

Posted 16 June 2012 - 05:14 PM

I'm trying to add a pickup object to my game, when the player is near, it follows the player, ignoring all collisions, when it hits the player it adds the item to the variables.

if distance_to_object(obj_player)<48
{
mp_potential_step(obj_player.x,obj_player.y,3,0);
}

if place_meeting(x,y,obj_player)
{
with (obj_player)
{
slot[other.slot,1]+=1;
}
instance_destroy();
}

my only problem is that world blocks are solid, and the pickup seems to dont go through solid objects, i've also tryed move_towards_point, doesnt work... any way?

Edited by 12warr12, 16 June 2012 - 05:14 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users