KENYONB Say, your animations are named A0, A1, A2..
On Next pressed Sprite compare frame = (Sprite.animationFrameCount-1) Sprite set animation "A" & (int(replace(Sprite.AnimationName,"A", ""))+1) Else Sprite set frame to (Sprite.AnimationFrame+1)
I don't quite understand why you need 5 sprites for one energy bar. Why don't you use just one sprite with 5 frames in it? First frame is 5 blue blocks, second frame is 4 blue+1 grey etc.
Another option is to use a static sprite with 5 grey blocks, and tiled background above it with blue blocks, which you can resize to change the number of blue blocks.
Develop games in your browser. Powerful, performant & highly capable.
Have you tried requesting Browser-Fullscreen again?
You need to parse the text and wrap each character in bbcode tags before outputting to the screen. Here is a simple demo which supports bold text only, you can easily add other tags:
dropbox.com/s/dig4l55be35kznq/BBCode_Typewriter.c3p
dropbox.com/s/a3qax1mv9dqbxvr/AnimationFrameMorph.capx
You can add all physics sprites into a family and use "Is sleeping" event to check if all sprites are not moving.
However, I noticed that in Box2D engine physics object are often reluctant to sleep - they continue to move/shift a little for a long time.
I recommend using Chipmunk behavior instead.
construct.net/en/forum/extending-construct-2/addons-29/behavior-chipmunk-physics-82151
You can test with some dummy images, you don't need to export and edit real character images.
I found a few somewhat relevant plugins, don't know if any of them can actually help:
c2rexplugins.weebly.com/rex_sprite_animation_loader.html
c2rexplugins.weebly.com/rex_gifjs.html
scirra.com/store/construct2-plugins/mmpreloader-layout-preloader-3620
Bullet on collision with Enemy Enemy pick top instance Enemy subtract 1 from HP Bullet destroy
If you don't want to destroy the bullet, you can disable collisions for it.
If this doesn't work, please post your project of events screenshot.
Yes, please post a screenshot or a small demo project.
Have you tried to estimate the memory usage? So each character will have about 1000-2000 frames. Add 2000 images to a sprite, run the project, see how long does it takes to load the layout and how much memory it uses. I'm guessing you only need to display and load images for two characters at a time, so it may not be that bad. You'll need a separate sprite object for each character and create it on layout start.
Try "Scale outer" mode in project properties and set Unbounded scrolling=Yes for your layouts.
Use angle(mouse.x, mouse.y, object.x, object.y) and distance(mouse.x, mouse.y, object.x, object.y) expressions.
For example, you can try something like this:
Apply impulse clamp(200/distance(mouse.x, mouse.y, object.x, object.y), 1, 10)
Member since 26 May, 2016 Last online 25 Feb, 2025