This is an old post but I needed it this morning and I had to figure out how to make it work.
It look like a bug in C2. The third loop stop working when you set the new position of your <scan> object.
If you call a function to destroy your sprites, it works:
I made some test and it worked exactly as you expected.
> Cool! I dig it. > > What does you state system look like? I like state machines but haven't had a chance to really use them in C2. > Do you mean that 'State: moving' and 'State: idle'? I thought it would help with the ladders but it didn't turned out well. I just made the following condition: - Platform is moving > set State to 'moving' - Platform is not moving > set State to 'idle' That's it, pretty simple.
> Cool! I dig it.
>
> What does you state system look like? I like state machines but haven't had a chance to really use them in C2.
Do you mean that 'State: moving' and 'State: idle'? I thought it would help with the ladders but it didn't turned out well. I just made the following condition:
- Platform is moving > set State to 'moving'
- Platform is not moving > set State to 'idle'
That's it, pretty simple.
I think bclikesyou is talking about Finite State Machines.
Thanks — This is my condition (I didn't need Sprite.X and Sprite.Y).
I'm working on a platformer. I'm looking for a way to detect that my player is near the edge of a 'precipice' so I will be able to change the animation.
Develop games in your browser. Powerful, performant & highly capable.
Which format of music did you import?
Your tank must have a behavior that interact with solids (8 Direction, bullet, etc).
https://www.scirra.com/manual/104/solid
Use the <set shadow color> action of the ShadowLight object.
Thanks, I'll give it a try.
LittleStain Do you have a solution to replace a TextBox object?
Member since 7 Sep, 2014