Users browsing this thread: 7 Guest(s)
Weapon Alpha
#8
Sorry to double post but I have hit a slight bump. I'm trying to get enemies to display a small health bar above themselves. Problem is I can't seem to get them to display their hud and their own graphics at the same time. The health depleting code is working fine, but i cant seem to get the visual running.
[Image: 5b9EESY.gif]/[Image: SEe0SZ0.gif]

The current way I'm doing it uses the draw event "draw_rectangle(x,y-8,x+mydisplayhealthvar,y-5,0)". I've attempted to get it to draw its own sprites as well, but the draw_sprite function doesn't seem to allow me to keep the sprite animated. If you guys could suggest an alternate method or a way to fix this one, I'd greatly appreciate it.
[Image: RI52nD7.gif]
EDIT: Someone on Sprites Inc helped me fix it.  "draw_spritRolleyesxt(sprite_index,image_index,x,y,image_xscale,image_yscale,image_angle,image_blend,image_alpha)"

The draw event was overriding all other sprite actions. this code makes it render itself through the draw event, so it wont be overridden while still drawing the health bar.So thanks to Drax. I think he goes by terminal devastation here.

Side-note: While playing a test room I noticed something about the beam mechanics. Given that the beam requires continuous contact to do any damage, if you try to turn away to maneuver  out of an enemy's or attack's way, you stop focusing on what you were aiming at.Should I attempt to add in a lock focus or moonwalk(from super metroid) type button so you can move back while still facing an enemy?
Reply
Thanked by:


Messages In This Thread
Weapon Alpha - by Valo - 06-24-2015, 12:38 PM
RE: Weapon Alpha - by TheShyGuy - 06-24-2015, 02:08 PM
RE: Weapon Alpha - by Valo - 06-24-2015, 03:48 PM
RE: Weapon Alpha - by Bombshell93 - 06-24-2015, 06:15 PM
RE: Weapon Alpha - by Kelvin - 06-25-2015, 08:20 AM
RE: Weapon Alpha - by Silversea - 06-26-2015, 06:55 PM
RE: Weapon Alpha - by Valo - 06-27-2015, 03:14 AM
RE: Weapon Alpha - by Valo - 06-27-2015, 11:39 AM
RE: Weapon Alpha - by Kitsu - 06-27-2015, 03:33 PM
RE: Weapon Alpha - by Valo - 06-27-2015, 04:28 PM
RE: Weapon Alpha - by Kitsu - 06-27-2015, 02:14 PM
RE: Weapon Alpha - by Valo - 06-27-2015, 02:20 PM
RE: Weapon Alpha - by Kitsu - 06-27-2015, 02:27 PM
RE: Weapon Alpha - by Valo - 06-27-2015, 02:41 PM
RE: Weapon Alpha - by Kitsu - 06-27-2015, 02:54 PM
RE: Weapon Alpha - by Valo - 06-27-2015, 02:57 PM
RE: Weapon Alpha - by Kitsu - 06-27-2015, 04:53 PM
RE: Weapon Alpha - by Valo - 06-27-2015, 05:34 PM
RE: Weapon Alpha - by Valo - 06-27-2015, 11:07 PM
RE: Weapon Alpha - by Bombshell93 - 06-28-2015, 12:07 AM
RE: Weapon Alpha - by Kitsu - 06-28-2015, 01:27 AM
RE: Weapon Alpha - by Valo - 06-28-2015, 01:42 AM
RE: Weapon Alpha - by Kitsu - 06-28-2015, 09:53 AM
RE: Weapon Alpha - by Gors - 06-28-2015, 11:05 AM
RE: Weapon Alpha - by Valo - 06-28-2015, 12:26 PM
RE: Weapon Alpha - by Bombshell93 - 06-28-2015, 12:25 PM
RE: Weapon Alpha - by Bombshell93 - 06-28-2015, 12:37 PM
RE: Weapon Alpha - by Valo - 06-28-2015, 12:40 PM
RE: Weapon Alpha - by Bombshell93 - 06-28-2015, 01:38 PM
RE: Weapon Alpha - by Valo - 06-29-2015, 01:03 PM
RE: Weapon Alpha - by Bombshell93 - 06-29-2015, 08:17 PM
RE: Weapon Alpha - by Valo - 06-29-2015, 08:36 PM
RE: Weapon Alpha - by Gors - 06-30-2015, 01:30 PM
RE: Weapon Alpha - by Valo - 06-30-2015, 03:30 PM
RE: Weapon Alpha - by Valo - 07-01-2015, 02:18 PM
RE: Weapon Alpha - by Bombshell93 - 07-01-2015, 02:47 PM
RE: Weapon Alpha - by Valo - 07-01-2015, 04:10 PM
RE: Weapon Alpha - by Bombshell93 - 07-01-2015, 05:43 PM
RE: Weapon Alpha - by Valo - 07-01-2015, 06:16 PM
RE: Weapon Alpha - by Bombshell93 - 07-01-2015, 07:28 PM
RE: Weapon Alpha - by Valo - 07-03-2015, 12:02 AM
RE: Weapon Alpha - by Bombshell93 - 07-03-2015, 12:28 AM
RE: Weapon Alpha - by Valo - 07-03-2015, 11:55 AM
RE: Weapon Alpha - by Bombshell93 - 07-03-2015, 12:57 PM
RE: Weapon Alpha - by Valo - 07-03-2015, 05:41 PM
RE: Weapon Alpha - by Bombshell93 - 07-03-2015, 06:15 PM
RE: Weapon Alpha - by Valo - 07-03-2015, 06:28 PM
RE: Weapon Alpha - by Bombshell93 - 07-03-2015, 06:43 PM
RE: Weapon Alpha - by Valo - 07-05-2015, 12:01 AM
RE: Weapon Alpha - by TheShyGuy - 07-05-2015, 12:33 AM
RE: Weapon Alpha - by Valo - 07-05-2015, 12:51 AM
RE: Weapon Alpha - by TheShyGuy - 07-05-2015, 05:35 PM
RE: Weapon Alpha - by Valo - 07-05-2015, 07:00 PM
RE: Weapon Alpha - by TheShyGuy - 07-05-2015, 07:33 PM
RE: Weapon Alpha - by Valo - 07-08-2015, 10:05 PM
RE: Weapon Alpha - by Kitsu - 07-09-2015, 02:15 PM
RE: Weapon Alpha - by Valo - 07-09-2015, 07:58 PM
RE: Weapon Alpha - by Gors - 07-10-2015, 06:10 PM
RE: Weapon Alpha - by TheShyGuy - 07-10-2015, 07:03 PM
RE: Weapon Alpha - by Valo - 07-11-2015, 09:57 PM
RE: Weapon Alpha - by Valo - 07-12-2015, 07:31 PM
RE: Weapon Alpha - by Bombshell93 - 07-12-2015, 09:18 PM
RE: Weapon Alpha - by Valo - 07-13-2015, 04:18 PM
RE: Weapon Alpha - by Valo - 07-16-2015, 08:55 PM
RE: Weapon Alpha - by Quirby64 - 07-16-2015, 09:27 PM
RE: Weapon Alpha - by Valo - 07-16-2015, 09:31 PM
RE: Weapon Alpha - by Bombshell93 - 07-16-2015, 09:29 PM
RE: Weapon Alpha - by TheShyGuy - 07-16-2015, 10:57 PM
RE: Weapon Alpha - by Valo - 07-16-2015, 11:39 PM
RE: Weapon Alpha - by TheShyGuy - 07-17-2015, 12:22 AM
RE: Weapon Alpha - by Valo - 07-17-2015, 12:25 AM
RE: Weapon Alpha - by Bombshell93 - 07-17-2015, 06:27 AM
RE: Weapon Alpha - by Valo - 07-17-2015, 08:02 AM
RE: Weapon Alpha - by Bombshell93 - 07-17-2015, 09:01 AM
RE: Weapon Alpha - by Valo - 07-17-2015, 09:21 AM
RE: Weapon Alpha - by Valo - 07-17-2015, 07:49 PM
RE: Weapon Alpha - by Bombshell93 - 07-17-2015, 09:00 PM
RE: Weapon Alpha - by TheShyGuy - 07-17-2015, 09:36 PM
RE: Weapon Alpha - by Valo - 08-07-2015, 01:58 PM
RE: Weapon Alpha - by Valo - 08-12-2015, 06:22 PM
RE: Weapon Alpha - by Bombshell93 - 08-12-2015, 06:41 PM
RE: Weapon Alpha - by Valo - 08-12-2015, 10:41 PM
RE: Weapon Alpha - by StarSock64 - 08-14-2015, 12:13 AM
RE: Weapon Alpha - by Valo - 08-14-2015, 12:33 AM
RE: Weapon Alpha - by StarSock64 - 08-14-2015, 04:40 AM
RE: Weapon Alpha - by Valo - 08-15-2015, 01:04 AM
RE: Weapon Alpha - by Valo - 08-15-2015, 10:36 PM
RE: Weapon Alpha - by Mag - 08-15-2015, 10:57 PM
RE: Weapon Alpha - by TheShyGuy - 08-15-2015, 10:58 PM
RE: Weapon Alpha - by Valo - 08-15-2015, 11:15 PM
RE: Weapon Alpha - by TheShyGuy - 08-16-2015, 03:02 AM
RE: Weapon Alpha - by Mag - 08-16-2015, 12:57 PM
RE: Weapon Alpha - by Valo - 08-16-2015, 02:11 PM
RE: Weapon Alpha - by Valo - 08-20-2015, 07:17 PM
RE: Weapon Alpha - by Valo - 08-26-2015, 10:31 PM
RE: Weapon Alpha - by Mat(Nerah) - 08-31-2015, 12:35 PM
RE: Weapon Alpha - by Valo - 08-31-2015, 06:47 PM
RE: Weapon Alpha - by Mat(Nerah) - 08-31-2015, 07:57 PM
RE: Weapon Alpha - by Valo - 08-31-2015, 10:00 PM
RE: Weapon Alpha - by Mat(Nerah) - 08-31-2015, 11:02 PM
RE: Weapon Alpha - by TheShyGuy - 09-01-2015, 09:43 AM
RE: Weapon Alpha - by Silversea - 09-04-2015, 12:07 AM
RE: Weapon Alpha - by Valo - 09-04-2015, 07:49 AM
RE: Weapon Alpha - by Valo - 09-05-2015, 09:28 PM
RE: Weapon Alpha - by Gors - 09-05-2015, 10:01 PM
RE: Weapon Alpha - by TheShyGuy - 09-05-2015, 10:27 PM
RE: Weapon Alpha - by Valo - 09-05-2015, 11:19 PM
RE: Weapon Alpha - by TheShyGuy - 09-06-2015, 12:52 AM
RE: Weapon Alpha - by Valo - 09-06-2015, 07:53 PM
RE: Weapon Alpha - by Mat(Nerah) - 09-06-2015, 08:02 PM
RE: Weapon Alpha - by Valo - 09-06-2015, 08:30 PM
RE: Weapon Alpha - by Struggleton! - 09-06-2015, 08:01 PM
RE: Weapon Alpha - by TheShyGuy - 09-07-2015, 03:28 PM
RE: Weapon Alpha - by Valo - 09-07-2015, 06:04 PM
RE: Weapon Alpha - by Silversea - 09-08-2015, 11:35 PM
RE: Weapon Alpha - by Valo - 09-09-2015, 04:09 PM
RE: Weapon Alpha - by Valo - 09-12-2015, 04:31 PM
RE: Weapon Alpha - by StarSock64 - 09-13-2015, 06:46 PM
RE: Weapon Alpha - by Valo - 09-18-2015, 07:37 PM
RE: Weapon Alpha - by Silversea - 09-20-2015, 01:44 PM
RE: Weapon Alpha - by Valo - 09-20-2015, 03:28 PM
RE: Weapon Alpha - by Mat(Nerah) - 09-20-2015, 03:35 PM
RE: Weapon Alpha - by Valo - 09-20-2015, 04:06 PM
RE: Weapon Alpha - by Valo - 10-10-2015, 09:53 PM
RE: Weapon Alpha - by Valo - 02-27-2016, 01:01 AM
RE: Weapon Alpha - by TheSkyGuy - 03-08-2016, 06:27 PM
RE: Weapon Alpha - by TheShyGuy - 03-08-2016, 08:16 PM
RE: Weapon Alpha - by TheSkyGuy - 03-08-2016, 09:39 PM
RE: Weapon Alpha - by Valo - 03-09-2016, 02:51 PM
RE: Weapon Alpha - by TheSkyGuy - 03-09-2016, 06:13 PM
RE: Weapon Alpha - by Valo - 03-09-2016, 10:54 PM
RE: Weapon Alpha - by TheSkyGuy - 03-10-2016, 12:10 AM
RE: Weapon Alpha - by Silversea - 04-29-2016, 10:41 AM

Forum Jump: