ramoneknot Posted November 7, 2012 Author Share Posted November 7, 2012 Hi friends can comeone help me with Chat bubbles Eclipse Rebornfor sprites large than 32X32 see how they appear![](http://img845.imageshack.us/img845/1964/sstest.jpg) Link to comment Share on other sites More sharing options...
Santini Posted November 7, 2012 Share Posted November 7, 2012 Hi,Are these the only size sprites you plan to use or to you plan to use a lot of different size sprites? Link to comment Share on other sites More sharing options...
Ertzel Posted November 7, 2012 Share Posted November 7, 2012 I don't have access to the code right now due to not having vb6 but look at the DrawPlayerName sub and see how it's Y positioning is based off of the sprite height. Then modify the code used for speech bubble positioning based off of that code so it appears above the name. Link to comment Share on other sites More sharing options...
Santini Posted November 7, 2012 Share Posted November 7, 2012 Hi,Sorry, my first reply was pretty irrelevant. that's tiredness for you. ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)Anyway in the sub DrawChatBubble replace this line:Y = ConvertMapY((Player(.target).Y * 32) + Player(.target).yOffset) - 32with this line:Y = ConvertMapY((Player(.target).Y * 32) + Player(.target).yOffset) - (D3DT_TEXTURE(Tex_Char(GetPlayerSprite(.target))).height / 4) + 4I tested it on my pc and it worked, so hopefully it will work for you. ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) Link to comment Share on other sites More sharing options...
ramoneknot Posted November 7, 2012 Author Share Posted November 7, 2012 Works Fine Thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now