Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - scjohnson243

Pages: 1
1
Ask a Question / Having trouble with Behaviors
« on: May 22, 2012, 01:20:24 pm »
Hi all - Just getting started in Stencyl - I have a oracle programming background (never an expert, but always trying!)

I am having a problem figuring out where to put behaviors - I have read over the tutorials over and over, but for some reason its still not sinking in - I have been thinking of them as classes in other Object oriented languages(the little I know) But for some reason I just cant keep them in the right places.

For example

A basic tower defense game, I have a tower, bullet and enemy actors

Enemy walks along a set path (walking behavior attached to enemy - would also keep track of things like speed, hit points, etc - things specific to only this actor, right/)

Tower will have things like the range, attack speed?

Bullets would have damage, flight speed, special effects (SLow, AE, etc)

is that correct?  So for this example, I tie bullet damage to the bullet - it does 5 damage, it hits the enemy and I would take off 5 hit points from the enemy actor, right?  How do I tell the damage from the bullet to talk to the hp of the enemy actor?

ugh.. I keep confusing myself - Does anyone have any good advice with how to keep this separated? I am trying Publishers tower defense tutorials and I keep getting myself lost... Any advice, links, tips would be appreciated.

Pages: 1