Is it possible to make new sprites/balls while playing

Thanks to the update by @Kevinkun to his CompCreator extension (V7.1), it is now possible to create and remove ImageSprites on a canvas.

makeNewSprites.aia (21.8 KB)

2 Likes

There is an inbuild Children block in the extension, no need to maintain an extra list by user.
Maybe there is one issue: when you have several type of children component...

2 Likes

Yes, Children. I was concerned it might also return any non dynamic sprites or balls, but experimenting shows it only returns the dynamic ones. Clever stuff :slight_smile:

1 Like

how do i get compcreator to be a supported file

  1. Download the extension (version 7.1), from the link, to your computer
    (it downloads in a zip file so you need to extract the aix file from within)
  2. Start a new aia project. ( Do not connect to the companion app)
  3. At the bottom of the palette on the left of the screen, select Extension, the last entry
  4. Click on the Import extension link
  5. Select the extension from your computer in order to import it
  6. Drag the extension from the Extension area to the Designer area (the phone image)
  7. The extension should appear in the Components palette on the right
  8. The extension is now ready to use, and its blocks will be available in the Blocks editor.
1 Like

Actually, you don't need to start a new project. :wink:
You can import an extension to any project of yours. :grin:

I think I was doing the wrong link, but the down load link dose not work for me, it is possible that since this is a school computer it is blocked as it is one of the two screens that pop up when it is blocked. is their a different way to get it.

Try directly going to the website link :

https://kevinkun.cn/compcreator

Use the translate feature if you need it.

Scroll down the the Downloads sections.

Download the last file and then extract it.

You'll find the .aix file in the extracted folder.

1 Like

I have a similar problem and can only access an extension called the "Dynamic components extension" and am trying to replicate this but don't have the right blocks.

Specifically, the component_Property_Value block.

This post was flagged by the community and is temporarily hidden.

You would need to use the Dynamic Components extension, CompCreator does not currently offer full functionality for sprites and balls on the canvas. Read the documentation or see examples for how to set properties.

I have it downloaded, thanks. Do you know what it would look like?

The game is essentially space invaders and this is to make the aliens spawn in at the top.

This post was flagged by the community and is temporarily hidden.

Look at the code in this link

There is an aia near the end of the original post. .

You could possibly do something similar. since the example uses the Dynamic Component extension :wink:

Yes, this is what I'm trying to create. Maybe I could just make a swarm like it and make them all head down?

This is an App Inventor Project so anything is possible but not necessarily probable.

Might be easier to just delete the parts of code that spawn multiple rows. Just download the aia, make a copy of the app and experiment. Re-make it the way you want your app to be. :grinning:

Don't duplicate it but capture the pieces Marco coded that do what you want it to. @marco_tanzi made a real neat app. Everyone can learn from it.

I can't find where to download it.

The aia download link is at the bottom of the first post