ByName (Plugins)

Discuss Scirra's 2D Asset Store

Post » Wed Jul 05, 2017 6:27 am



ByName — Now for sale in the Scirra Store!
https://www.scirra.com/store/construct2-plugins/byname-3640

ByName

This plugin allows you to:

  • Create any object in your project with just the string of its name.
  • Get the value of any effect/shader applied to an object (and whether the effect is active).
  • Check if a name is present within your project.

Now, instead of having huge if/else trees to determine which object to spawn, you can simply do 'ByName.Create("your_name")'. This is great for:

  • Firing different bullets
  • Creating spoils/power ups on enemy defeat
  • Creating random enemies
  • Whenever you need to dynamically choose which type of object to create


Use this topic to leave comments, ask questions and talk about ByName
B
6
S
1
Posts: 2
Reputation: 354

Post » Thu Jul 06, 2017 2:41 am

Here is a free plugin to create instance by string name.
B
108
S
26
G
272
Posts: 4,472
Reputation: 152,279

Post » Thu Jul 06, 2017 10:42 am

Hey rexrainbow!

I have seen your plugin before and took the time to make this one for a specific reason. It doesn't require any setup/nicknaming. So you can just add the plugin to the project and create anything right away :)

It also allows you to get effect params / if an effect is enabled on an object.

If you have any questions etc please let me know!
B
6
S
1
Posts: 2
Reputation: 354

Post » Sat Jul 08, 2017 3:24 am

@JhomasJhomas have you tested your plugin with the exported project? Objects names are lost after exporting.
ImageImageImage
B
27
S
16
G
80
Posts: 1,021
Reputation: 44,761


Return to Scirra Store

Who is online

Users browsing this forum: No registered users and 3 guests