I want an npc to give the player a sword that can be drawn or sheathed by right clicking a button on the HUD.
<img src="http://3.bp.blogspot.com/-TsgPQcbRkNg/Ubj3YOjFv5I/AAAAAAAAAZ4/uHunyE_0tns/s1600/solvo1.png" border="0" />
sort of works, in that clicking the button changes the button image and changes the player frame.
<img src="http://2.bp.blogspot.com/-WeVj2TnMhm0/Ubj5diLDesI/AAAAAAAAAaQ/MMp6RZuMaLM/s320/fff.gif" border="0" />
But adding this bit:
<img src="http://4.bp.blogspot.com/-wIqfpqunSiA/Ubj3YJQg02I/AAAAAAAAAZ8/AU7NmPcHulI/s1600/solvo2.png" border="0" />
stops the button working at all.
<img src="%20http://1.bp.blogspot.com/-rloGki3aG64/Ubj5dmxW3gI/AAAAAAAAAaU/oCMCvk2jkQc/s1600/ffff.gif" border="0" />
Does anybody know what's up?
Try adding Sprite11 Is Visible to event 19 and Claiomh Is Visible to event 18
Develop games in your browser. Powerful, performant & highly capable.
Or don't use 2 sprites. Just use one. Key it off the frame or animation instead of which sprite you clicked.
<img src="http://1.bp.blogspot.com/-0qKujuu-BhE/UbkHadsDidI/AAAAAAAAAao/ABgMojqnkeg/s1600/fffff.gif" border="0" />
(It doesn't work that way.)
Thanks, that's what I started off with, but I was having the same problem. Separate sprites was me trying to work around the problem instead of fixing it. I'll set it back to that way, and post an image of the Event sheet as I had it. Sprites, frames or animations: I'll be happy with anything that works.
I deleted Sprite11 and imported the graphic as "animation2" in Cla?omh
Now it looks like this:
<img src="http://3.bp.blogspot.com/-4MDQ9-dQ_xg/UbkTZILwI_I/AAAAAAAAAa4/KLtFsVHJVb4/s1600/ffffffff.gif" border="0" />
(It doesn't work this way.)
hi, i created a little example, using a boolean variable
hope it helps
set weapon active
Thank you so much!
I'll try that as soon as I get home.
There are these two tutorials here which I'm currently using:
Also there are a lot more tutorials that exist as well, I've seen one to do with the animation or 'swooshing' if you like of a sword. Just search around and it'll be found.
Thank you Sulli!