06-09-2006, 09:53 PM
Fix what.. It does work perfectly lol
Overhead Damage
|
06-09-2006, 09:53 PM
Fix what.. It does work perfectly lol
06-09-2006, 10:02 PM
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.
29-08-2007, 01:11 AM
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.
29-08-2007, 01:48 AM
This is over a year old and the OP doesn't frequent the forums anymore...
Quote:Robin:
29-08-2007, 01:58 AM
Ilovelamp wrote it.
29-08-2007, 02:09 AM
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... Quote:Robin:
29-08-2007, 02:17 AM
Yeah but he's been here alot lately.
o.O
29-08-2007, 01:43 PM
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. Quote:Robin:
30-08-2007, 12:13 PM
Robin Wrote:Rezeyu Wrote:Yeah but he's been here alot lately. Agreed.
27-11-2008, 09:55 PM
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
09-12-2008, 08:07 PM
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
09-12-2008, 09:14 PM
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
19-01-2009, 01:37 AM
If you are uber leet you end up with this xP
![]() |
« Next Oldest | Next Newest »
|