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.
Which format of music did you import?
Develop games in your browser. Powerful, performant & highly capable.
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?
So the solution is to use the mouse object and a sprite and recreate the button behavior (changing sprite animation on Cursor is over)?
Yes, I use normal button. I tried the plugin button and it has the same behavior.
Thanks for the link, I will definitively use the button plugin instead the normal one.
Use a text object, create an instance variable to keep the user ID. You could also declare your text object global and use it in all your layouts.
Look at this post that talk about this technique: http://www.scirra.com/forum/viewtopic.php?f=146&t=150185