This is not possible. You can use a dictionary - add it to the same container with the sprite, so that each sprite instance will automatically have its own instance of the dictionary. And then use this dictionary to keep all values, instead of instance variables. When an item is picked up and you need to add 1 to this item count, you can do something like this:
Pick an instance of Object ObjDictionary Add key (item.name & "Capacity") with value (Self.Get(item.name & "Capacity")+1)
You can also create a couple of helper functions to make adding/retrieving data from this dictionary easier.
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)
It's very easy to distribute sprites using lerp expression. For example:
Card set X to lerp(50, 500, card.iid/(Card.count-1))
If you need to do this only for some sprite instances, say you need to re-arrange cards that belong to player 1:
Card compare instance variable player=1 local variable NumberOfCards Set NumberOfCards to Card.pickedCount System for each Card Card set X to lerp(50, 500, loopindex/(NumberOfCards-1))
The above will work better for a large number of cards. When there are only 1-3 cards left, they will be too far apart. If you need to keep cards together, say at fixed 80px distance from each other, you need to use some other method. For example:
Card set X to Card.iid*80 + (LayoutWidth/2-(Card.Count-1)*80/2)
For accessing data from google spreadsheet see this tutorial:
construct.net/en/tutorials/create-online-database-google-1373
Here is a demo on how to make a searchable list:
dropbox.com/s/9esvuvpfsnri46n/SearchableList.capx