Alright, this is just something I'm wondering about- Is it possible to have one part of the char have a different name and have different interactions (for example a logo on one's shirt would bring up a description of what the logo is of, and clicking the rest of the char descripts the character. Or if a char is carrying a bag I want to be a able to click on the bag and the char will open the inventory).
Is this possible? Do I need an extra character to somehow follow the char and be part of him?
Dunno if this is simple enough for beginners tech, but whatever. :)
QuoteIs this possible? Do I need an extra character to somehow follow the char and be part of him?
I think its the best way, especially bearing in mind a new parameter that was added (v2.6) to work with FollowCharacterEx() function - FOLLOW_EXACTLY:
QuoteThere is also another special use for this command. You can pass the special value FOLLOW_EXACTLY as the DIST parameter rather than passing a number. If you do this, then CHARID will always remain at exactly the same X and Y co-ordinates as CHARTOFOLLOW. This might be useful for effects such as a temporary halo over the character and so forth. If you use this, simply pass 0 for EAGERNESS.
So, you just make a BAG character by drawing a bag image for all of his walking frames, then in script:
FollowCharacterEx (BAG, EGO, FOLLOW_EXACTLY, 0);
I haven't tested that but basically it should work.
~Cheers
Either that, or get the mouse x and y coords when the user clicks on the player character. You could have some function that translates that x,y pair into a character region, depending on where the character is (relative to the screen) at the time. Might get kind of hard to implement if you have a LOT of items that you want to be interchangeable throughout the game...
Great, I'll try the new follow char feature when I want to implement this. It was sorta for an idea that I now don't want to make just yet, heh, but I might use it somewhere. :)
Thanks Scorpiorus and densming. ;)