How do I Make Multiple Projectiles from 1 player

Get help using Construct 2

Post » Wed Aug 19, 2015 12:12 am

Hi

Im making a game where i need a player to be able to be able to touch a sprite, and shoot a certain weapon.

Example: I touch fireball. then touch the screen, i want the fireball to shoot.

So is there a way to change what weapon you are using by touching a certain sprite?
It Cant interfere with the 2 player touch controls though.


Thanks in advance!! :)

EDIT: If the above is not possible, Would you be able to make it to where right when you touch the sprite, it shoots.

Thanks again
B
22
S
7
G
1
Posts: 90
Reputation: 2,045

Post » Wed Aug 19, 2015 9:05 am

Hi,
You make an ObjectPool class, which is a great start. However, you made it particular to Projectiles. A superior outline is for it to be bland so you can pool a wide range of things.
In any case, you are making every one of the shots on startup. They are being situated and arranged at the same time taking into account the change of the article that you have the ObjectPool conduct on. That's why, they all are on the same position and terminating the same course.
Thanks!!
B
2
Posts: 1
Reputation: 152

Post » Wed Aug 19, 2015 12:01 pm

Could you give an example of that? I'm still confused on the subject.
B
22
S
7
G
1
Posts: 90
Reputation: 2,045


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 14 guests