![]() |
Overhead Damage - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49) +---- Thread: Overhead Damage (/showthread.php?tid=47) Pages:
1
2
|
- Krloz - 06-09-2006 Fix what.. It does work perfectly lol - Obsidian - 06-09-2006 Well even if it does work perfectly... you don't need the ' Variables Public NewPlayerX As Long Public NewPlayerY As Long Public NewXOffset As Long Public NewYOffset As Long Public NewX As Long Public NewY As Long Public sx as Long those were all variables from elysium... used in GSD's scrolling map system, the reason that i even bothered to set those was because when i wrote the original tutorial i was too lazy to go through and remove all of the variables, i just had you declare them instead. Re: Overhead Damage - Sh4d0ws - 29-08-2007 Thank you for the tutorial. If you ever want to improve it, might i suggest... - If the creature has a instant re spawn time, then the damage can still be seen when they re spawn. - Damage should start a little closer to the creatures... Not so far up. Re: Overhead Damage - Robin - 29-08-2007 This is over a year old and the OP doesn't frequent the forums anymore... Re: Overhead Damage - Rezeyu - 29-08-2007 Ilovelamp wrote it. Re: Overhead Damage - Robin - 29-08-2007 Since when did Sean frequent the forums? He drops in every few months, thats about it. Besides, if he wanted to work on any of his tutorials, adding extras to this is the least of his worries... Re: Overhead Damage - Rezeyu - 29-08-2007 Yeah but he's been here alot lately. o.O Re: Overhead Damage - Robin - 29-08-2007 Rezeyu Wrote:Yeah but he's been here alot lately. Meh, still, it can't really be say he frequents the board. He just pops in from time to time. Re: Overhead Damage - Matt - 30-08-2007 Robin Wrote:Rezeyu Wrote:Yeah but he's been here alot lately. Agreed. Re: Overhead Damage - Johny050 - 27-11-2008 At first it didn't work for me in Mirage Source 3.0.3 I have Scrolling Maps implented so I'm almost pretty sure that's why it didn't work out for me. I just fixed it by changing the X and Y where the text should be drawn. If you use MS 3.0.3. and have scrolling maps implented. Then below the following code: Code: ' Lock the backbuffer so we can draw text and names Add: Code: If NPCWho > 0 Then Re: Overhead Damage - Xlithan - 09-12-2008 I'm working on getting this working now. I can display the damage that the player recieves from the NPC, but for some reason I can only get it to display above the players head using this syntax: Code: Call DrawText(TexthDC, (PIC_X * (MAX_MAPX + 1)) + (NewX + sx + Int(PIC_X / 2) - ((Len(NPCDmgDamage) / 2) * GameFontSize)), (PIC_Y * (MAX_MAPY + 1)) + (NewY + sx - Int(PIC_Y / 1)), "-" & NPCDmgDamage, RGB(255, 0, 0)) I can't seem to find the location of the NPC and display the damage above it that the player does. Also, the problem with that code is that it doesn't display the NPC damage until you attack that NPC. So, this is what I did... All I did was remove these if statements: Code: If NPCWho > 0 Then And just have this: Code: If GetTickCount < NPCDmgTime + 2000 Then Re: Overhead Damage - Xlithan - 09-12-2008 Ok, after fixing this up I just decided to display both damage taken and damage given above the player. Check the attachment to see the example. Damage scrolls upwards, which is why it's not all level in the screenshot. I've also added this to player attacking. Red text = Damage taken Green text = Damage given out Re: Overhead Damage - Coke - 19-01-2009 If you are uber leet you end up with this xP ![]() |