any ideas howto do a sword attack with LD
should i createa invisible object for the sword range to detect collision or is there an easier method to do so
and how can i set an animation only to play until animation is done and then set it back to normal state i tried to set loops in animation editor to 1 and then used playsequence(attack) like in scroller example but its doing the sequence as long as i clikc the button even if its not done
and also can i somehow set multiple imagesheets for an character object like every animation from the character has an own imagesheet
for example
i got an diffrent image sheet for
walk
idle
idle2
jump
attack
…
but i want to create only one asset out of it so i can call it by the assetname like
local playerProps =
{
name=‘player’,
objType=‘LDImage’,class=’’,
width=80,
height=162,
x=136,
y=801,
xScale=0.43956*1,
yScale=0.529412*1,
assetName=playerhero.image----(load asset name from a variable)
}
mylevel:createObject(“Player”,playerProps)
thank u very much for ure help
wfw philipp juen