I tried the next commandline:
If mouseclick()=1 and object frame(1)<205 and object frame(1)>235 then play object 1,205,235
but that doesn't work also, does anybody know why?
Another problem is that I want to perform my character an attack: spreading his hands to the side, then to eachother in front of him and then let a bullet shoot out if his hands.I have the animating done, but I can't seem to delay the bullet until my character has his hands together. This is what I tried, but it won't work:
if Mouseclick()=1 and Explode =0
if BulletLife=0 or BulletLife<50
play object 1,205,235
mytimer#=timer()+1000
if timer()>mytimer#
Position object 2,X#,Y#+150,Z#
Set object to camera orientation 2
BulletLife =120
show object 2
play sound 2
endif
Endif
Endif
This is the code to let my character attack but the bullet shoots to soon (at mouseclick=1):
if Mouseclick()=1 and Explode =0
if BulletLife=0 or BulletLife<50
play object 1,205,235
Position object 2,X#,Y#+150,Z#
Set object to camera orientation 2
BulletLife =120
show object 2
play sound 2
endif
Endif
Endif
Can anybody help me? If you can I promise I will keep quiet for a while
One must keep his friends close,
but his enemies even closer. -The Godfather