chickens1127 Posted March 10, 2009 Author Share Posted March 10, 2009 Hey, super stupid question.On some maps, I want the sprite to change to another. Is this possible? Link to comment Share on other sites More sharing options...
AdrianC Posted March 10, 2009 Share Posted March 10, 2009 Yes, through scripting. Link to comment Share on other sites More sharing options...
chickens1127 Posted March 10, 2009 Author Share Posted March 10, 2009 how then??? lol Link to comment Share on other sites More sharing options...
Irhymer Posted March 10, 2009 Share Posted March 10, 2009 You can put a sprite change between the maps… that would be the easy way. :P Link to comment Share on other sites More sharing options...
AdrianC Posted March 10, 2009 Share Posted March 10, 2009 By calling Call SetPlayerSprite( Index, Sprite) on a map change, to a certain preassigned map. Link to comment Share on other sites More sharing options...
kris_hole Posted March 10, 2009 Share Posted March 10, 2009 example…Sub OnMapLoad(Index, OldMap, NewMap) If GetPlayerMap(index) = 2 Then Call SetPlayerSprite(index, 5) End IfEnd Subjust make sure you get it in the Sub OnMapLoad in your main.txt :P and the right sprite things you want and map number Link to comment Share on other sites More sharing options...
AdrianC Posted March 10, 2009 Share Posted March 10, 2009 You might also have to resend the char data, so that it updates to the correct sprite. Link to comment Share on other sites More sharing options...
chickens1127 Posted March 10, 2009 Author Share Posted March 10, 2009 ok, i was going to do sea battles but I may just get rid off it now. Link to comment Share on other sites More sharing options...
AdrianC Posted March 10, 2009 Share Posted March 10, 2009 Lol, thats probably one of the easiest scripts ever, and you already gave up… Link to comment Share on other sites More sharing options...
Rithy58 Posted March 10, 2009 Share Posted March 10, 2009 Well if you're doing to do sea battle, I suggest you put Change Sprite Attribute on your port so when your players try to move from the dock into the water, they change into a ship. You'll need ship sprite though.And what this does is. Just make your character look like a ship but everything else has not change. And you can also put change sprite.This is a simple way to do it. If you want a more complex way, you'll need scripting.Sincerely,Rithy 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