Jump to content


Photo

First time in GM: How to make bullet?


  • Please log in to reply
2 replies to this topic

#1 osklivysup

osklivysup

    GMC Member

  • New Member
  • 3 posts
  • Version:GM:HTML5

Posted 19 February 2012 - 05:20 PM

Hello every one. Iam trying to make my first steps in GM: HTML5 and still have problems :(

I want make bullet na mouse click, which will be oriented towards cursor. But it doesnt work.

Bullet object:
http://fii.cz/krdhm

Invisible object for creating bullet, which I paced in room:
http://fii.cz/qxaqkk

Can anyone give advice me?
  • 0

#2 Davve

Davve

    Procrastinator

  • GMC Member
  • 3665 posts
  • Version:GM8.1

Posted 19 February 2012 - 05:30 PM

Change the event to "Global left pressed", not just "Left pressed".

Global left pressed: The user clicks anywhere on the screen.
Left pressed: The user clicks on the object (which is impossible, since it doesn't have a sprite).
  • 0

#3 osklivysup

osklivysup

    GMC Member

  • New Member
  • 3 posts
  • Version:GM:HTML5

Posted 19 February 2012 - 05:48 PM

Thanks Davve!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users