Jump to content


Photo

Problem Ahead


  • Please log in to reply
2 replies to this topic

#1 DarkIntuition96

DarkIntuition96

    GMC Member

  • New Member
  • 26 posts

Posted 19 April 2010 - 10:11 AM

mmk So what i'm using is the transform sprite:
xscale: 1
yscale: 1
angle:  direction
Mirroring: no Mirroring
and i'm using coding in the left and right actions like so:
left:
{
  direction +=3;
}
Right:
{
  direction -=3;
}
simple $%!* really

but i also what to make it shoot in the direction my character is facing how would i do that with what i'm doing already? cuz i've thought ahead and it's most likely gunna shoot in a direction i don't want it to! so yeh helps plz!

-------------------I"M USING GAME MAKER 8 PRO!----------------------------
  • 0

#2 KooKoo

KooKoo

    GMC Member

  • GMC Member
  • 219 posts

Posted 19 April 2010 - 10:14 AM

ID = instance_create(x,y,obj_bullet) //obj_bullet is the object for your bullet
ID.direction = direction
ID.speed = 4 //or any speed you want the bullet to move

I hope that helps!
  • 0

#3 DarkIntuition96

DarkIntuition96

    GMC Member

  • New Member
  • 26 posts

Posted 19 April 2010 - 10:26 AM

thx for the help kookoo

but i found a way by just mucking around
for anyone who gets this problem! pay attention!
In for example space:
create moving:

make direction: direction

and in the bullet make an:
End step:
and put Transform sprite:
xscale:1
yscale:1
angle: direction (OMFG there it is again :chikin).... <--- don't put that... or this

and idk it just worked!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users