Jump to content
Search Community

my first GreenSock mini Game!

makis2404 test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Try making it more challenging. Maybe start with indirect fire using a paladin. ( @mikel knows what I'm talking about ?) Then you could add in a goal, like having to kill the enemy within a certain amount of time.

 

Indirect fire is a core game mechanic in Worms. Really fun!

 

 

 

 

You can animate a projectile along a parabolic path using the Physics2DPlugin.

https://greensock.com/docs/Plugins/Physics2DPlugin

 

 

See the Pen emjgxw by GreenSock (@GreenSock) on CodePen

 

 

And for very simple collision detection between the projectile and the enemy, you can use Draggable's .hitTest() method.

https://greensock.com/docs/Utilities/Draggable/hitTest

 

 

See the Pen ZOayGO?editors=0010 by GreenSock (@GreenSock) on CodePen

 

 

 

 

  • Like 7
Link to comment
Share on other sites

On 8/4/2018 at 8:10 PM, Rodrigo said:

Fun!!!

 

However I love bees, granted here in Chile we don't have those nasty killer ones, in fact you have to pester a bee quite a bit in order to get a sting, but still. Perhaps some trouble-making-looking wasps? :D

 

 

Hehe. But those are giant bees, with a stinger larger enough to impale a human.

 

Bees usually aren't a problem where I live either. The main reason I used them is because I already had an animation for them in this post.

 

See the Pen f2b6c985cf2da0ba493adc8c8c5ae512 by osublake (@osublake) on CodePen

 

 

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...