-
1 Attachment(s)
Restrict Actions
Hey forumers.
I'm having a little issue with my RESTRICT ACTIONS.
Attached is the mfa file for my program.
I am attempting to get the ship to shoot once every .5 seconds, as long as the spacebar is held down. However, when I use restrict actions, it fires once - and never again.
Please help!
Attachment 5350
-
The reason it only (appears) to be firing once is because on Line # 9 you are always creating "Circle enemy" but they never get destroyed and the number of objects for your frame is set to 500. So you reach that limit very quickly and it won't allow you to create ANY new objects.
Also on Line # 3 you have the restrict actions based on the Alterable value A (Shot interval) of the "Circle enemy" and it is set to 0. So it will always shoot (create the laser). Try changing that value to 500 or whatever?
-
2 Attachment(s)
Well, i remade the application. It seems that the problem in my game is that the RESTRICT ACTIONS event works fine when you set it to a time WITHOUT the expression editor. WHENEVER you use the expression editor, it fails to work.
Attachment 5355
In this example,(hit R) when the expression editor is used, it does not work. AND there are no other events to interfere.
-
50/100 is not the same as 50/1000. The 100 vs 1000 is clearly stated in either case.
-
Keyboarder,.can I ask what you trying to accomplish with this. I'm just not understanding what you're looking to do. If you are looking for the ship to shoot every 00".50 secs, wouldn't it be easier just to "Repeat while "space bar" is pressed" Restrict actions for 00"-50?
-
I really want to be able to have the ship's attack speed reduce, so it can shoot faster and faster as it collects tokens. And LB, then it would be shooting 10x faster, but it only shoots ONCE, and only once, instead of the normal x10.
Guys, thanks for all the advice so far!
-
Not for me, it shoots non stop in either case.
-
really? is it just my version?
-
I'm using build 253, which version are you using? Here's a video demonstration of it working:
http://www.youtube.com/watch?v=Tcrqvgkdtl4
-
oh that must just be my version then. i'm running 251.
thanks for the help LB!