lennaert
That's why I said "the simplest way", haha..
There's always room for adding extra stuff..
Simplest way I can think of is:
Create a global variable counter
system every 0.5 seconds
system compare two values counter < score
Develop games in your browser. Powerful, performant & highly capable.
Maybe you could upload it as a capx example tutorial.
instead of
floor(random(3))+1
you could also use
choose(1,2,3)
If you are using different objects use one of these two expressions to set a variable and create a differnt object based on the value of the variable.
Would adding an is not touching objectA condition to the on touched objectB event work?
Latest Beta r161
Actually setting repeat to 1 and setting all animations except the robot to speed 1 and the robot to speed 2 works.
If you want everything to go faster just increase the speed and decrease the time on the timer.
To get the animation to only play once in the animation editor set the animation repeat to 0 (or should it be 1.. hmmm)
you could also change the frame speed time to make all the animations the same time (robot has 3 more frames)
A far better way would probably be to skip the whole physics behaviour and fake it with other behaviours, but well..
The player should have physics behaviour also.
Apply force on the player and when the player touches the crates the crates should be pushed.
If not it could be the settings for density/friction etcetera could be off, so adjust these to your needs.
I'm not sure this fixes all, but it does help.
<img src="https://dl.dropboxusercontent.com/u/48563442/timersimon.jpg" border="0" />
Add start timer in the on timer event. and set the timer to 3 seconds in both events.
your timer is shorter than your animations so some are skipped and some are cut off before they are complete..
Ok, got it..
I understand what you are trying to do, so I'll look into getting it the way you'd like..
The image doesn't need bullet behaviour.
instead of player.angle you could set the angle of the image to player.bullet.angle
When previewing do you use the same layout as the first layout in project properties?