Instale o Steam
iniciar sessão
|
idioma
简体中文 (Chinês simplificado)
繁體中文 (Chinês tradicional)
日本語 (Japonês)
한국어 (Coreano)
ไทย (Tailandês)
Български (Búlgaro)
Čeština (Tcheco)
Dansk (Dinamarquês)
Deutsch (Alemão)
English (Inglês)
Español-España (Espanhol — Espanha)
Español-Latinoamérica (Espanhol — América Latina)
Ελληνικά (Grego)
Français (Francês)
Italiano (Italiano)
Bahasa Indonesia (Indonésio)
Magyar (Húngaro)
Nederlands (Holandês)
Norsk (Norueguês)
Polski (Polonês)
Português (Portugal)
Română (Romeno)
Русский (Russo)
Suomi (Finlandês)
Svenska (Sueco)
Türkçe (Turco)
Tiếng Việt (Vietnamita)
Українська (Ucraniano)
Relatar um problema com a tradução
Would like to add if you want to make a top-down rpg/shooter where the mouse aims and shoots this is what I modified from OP. I'm a noob so most of this is Drag'N'Drop not scripts.
Create Object: ObjWeaponParent (this is to make cursor aiming)
Create Event: Move Towards Point
x: mouse_x
y: mouse_y
speed: 20 (or whatever you prefer)
*Like OP mentioned - no sprite for Parents.
Next find your weapons: fireball, brick and star.
Make sure you assign the ObjWeaponParent to each of them.
Finally, open objPlayerParent
We got aim above, now to fire with mouse. Now create event - I pick Global Left Mouse - this for whatever reason allows me to hold and fire instead of clicking for each bullet.
1) Event > Global Left Mouse
2) Execute Code : Same Code as OP gave for using space bar to fire.
3) Delete The last two lines of Code:
new_shot.speed = 20;
new_shot.direction = direction;