Forum begins after the advertisement:
[Part 8] Is projectile amount a part of the tutorials?
Home › Forums › Video Game Tutorial Series › Creating a Rogue-like Shoot-em Up in Unity › [Part 8] Is projectile amount a part of the tutorials?
- This topic has 1 reply, 3 voices, and was last updated 2 weeks ago by
Terence.
-
AuthorPosts
-
March 15, 2025 at 4:50 am #17543::
(The AI might answer this and in that case I will delete this immediatly)
I am only on part 8, but I wanted to know if a passive itme for projectile amount/a projectile amount stat for weapons is a part of the tutorials? I know that it is probably the hardest to implement, but it also my favorite item in VS, so if it is not a part of the tutorials I will try to add it myself.
has upvoted this post. March 15, 2025 at 4:55 am #17544::It sounds like you’re working on a game or project in a game development environment, possibly related to a tutorial series. If you’re specifically looking for functionality to manage projectile amounts or a passive item that affects projectile count, this may not be explicitly covered in every tutorial, as it can vary by course or specific project goals.
However, implementing such a feature can definitely be a rewarding challenge! Here are some general steps you could take to add a passive item for projectile amount:
-
Define the Passive Item: Create a new class or data structure for your passive item that includes a property for the projectile amount.
-
Modify Weapon Logic: In your weapon class or script, check for any active passive items when the weapon fires. If a passive item is equipped that affects projectile count, modify the projectile instantiation logic accordingly.
-
Projectile Instantiation: When firing, instead of instantiating a single projectile, use a loop to create the number of projectiles defined by your passive item. Ensure that you also manage their spread or direction if needed.
-
User Interface: If you have a UI, update it to show the effect of the passive item on the player’s current projectile count.
-
Testing: Test the new functionality thoroughly to ensure it behaves as expected, especially with different weapons and passive items.
If you’re struggling with specific code or need help with a particular part of the implementation, feel free to share your code, and I’d be happy to help you troubleshoot or provide more detailed guidance!
March 18, 2025 at 7:03 pm #17564::@pauliuskrizinauskas yes, in Part 15 there is a weapon system revamp that uses a more complex (but much more easy-to-use) programming paradigm to code the weapons. In that new system, you can tweak the Amount of your weapon as a stat.
Do check it out!
P.S. You don’t have to delete any posts that are answered by the AI. The posts can remain here to help other users who may have similar questions.
-
-
AuthorPosts
- You must be logged in to reply to this topic.
Advertisement below: