obj/HPBar/
Enemy
icon='EnemyHPBar.dmi'
icon_state="Bar"
Problem description: It's not showing all the bar!!! The bar is a 127x19 Pixels. Any idea?
ID:264802
![]() Oct 4 2010, 9:45 pm
|
|
Code:
obj/HPBar/ Problem description: It's not showing all the bar!!! The bar is a 127x19 Pixels. Any idea? |
![]() Oct 4 2010, 11:30 pm
|
|
icon problem
|
Darker Legends wrote:
Taha123 wrote: Experience. |
Taha123 wrote:
Darker Legends wrote: There's no way you can tell it's an icon problem without seeing it. |
Darker Legends wrote:
Taha123 wrote: Ok we will go by your way. Ocean show use the icon. |
As Falacy mentioned, you didn't post enough code for anyone to tell what the issue is. It may be nothing to do with the way the obj is defined, but everything to do with how it's supposed to be displayed.
Lummox JR |
#define DEBUG All the code. Yeah, not alot. |
Obviously that is not all the relevant code, or you wouldn't be wondering why the obj isn't showing up because you aren't displaying it anywhere. You've now shown the value of map_format and the code for a separate bar, but you have not shown how they're being displayed. That's kind of a critical piece.
Lummox JR |
Ocean King wrote:
> #define DEBUG I would actually recommend adding things to the screen in Login() instead of client/New(). There are some issues with your New() call, but generally it looks like the Enemy bar should be added to the HUD since its screen_loc is being set no matter what. However, that New() call will fail because you're passing null instead of a client when you create the bar, so A.screen is actually null.screen. I suspect fixing that won't fix the problem you're having though. There are a few possible issues. The most likely is that the icon state "1" does not exist in EnemyHPBar.dmi. Another possibility is that the bar's layer may be too low so that it's displaying beneath other items; this would actually be a good candidate for using OBJ_LAYER+EFFECTS_LAYER. Lummox JR |
There aren't other icons on the map, just the black background. And the "Bar" with icon_state="1" it's just the red thing inside the "Enemy" (which is the bar). Hmm, i'm going to try that of EFFECTS_LAYER
Falacy: The map format is the default. TOPDOWN. EDIT: Nothing, is not working. :S EDIT 2: It's seems to be invisible, it's showing a 32x32 part then all the other part is invisible. |
Well was trying and i clicked: "Use graphics hardware for displaying maps" and it showed correctly... But slow...
|