Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Help with making a cannon projectile with entrails ...

Author
Message
ProfVersaggi
12
Years of Service
User Offline
Joined: 6th Apr 2012
Location: Maastricht Netherlands / Chicago, USA
Posted: 5th Jan 2013 11:45
I'm making a projectile that is fired by a battleship turret and want to create entrails as it moves through the air. I've considered a particle emitter but I don't know if one can be properly attached to a moving (physics enabled) sprite that's been set into motion.

Does anyone have any suggestions using this concept or any other?

----
From the Desk of Prof Versaggi ...
lilpissywilly
AGK Developer
14
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 5th Jan 2013 14:36
A particle emitter will work fine for this. Just update the position of the emitter to match the projectile

My hovercraft is full of eels
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 5th Jan 2013 19:13
Hmm, probably a good idea to keep the emitter optimised... like fewer particles but larger in size particles... [For Mobile Devices, should keep sync of the positioning speedy]...

ProfVersaggi
12
Years of Service
User Offline
Joined: 6th Apr 2012
Location: Maastricht Netherlands / Chicago, USA
Posted: 5th Jan 2013 19:26
Awesome! It worked! The AppGameKit Basic book doesn't list the SetParticlesPosition command so I didn't know that was possible until I checked the online reference for it ... good call!

----
From the Desk of Prof Versaggi ...
Daniel TGC
Retired Moderator
17
Years of Service
User Offline
Joined: 19th Feb 2007
Location: TGC
Posted: 6th Jan 2013 14:45
Get the sprites position by an offset and position the emitter at that point.

Login to post a reply

Server time is: 2024-11-24 06:11:46
Your offset time is: 2024-11-24 06:11:46