Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You have a gun and your looking to shoot laser pulses by pressing a key
or
Are you looking for a constant laser beam?
something like this at 15:47
https://www.youtube.com/watch?v=HGRWC5sBUN8
You would have to remove any instance destroy command for when it hits walls or goes outside the room. Make a several frame spr to animate it with glow and such. Then you could write the damage code based on the room speed or something.
There is some code you could program the length of the beam if you wanted to.
Edit: I think distance_to_point is what you would need.
Otherwise just do some instance destroy collision events with certain object in the room for the player to hide behind and such.
As for it's movement, there's plenty of ai tutorials out there on how you could program a turret of sorts to just rotate clockwise or randomly however you want.