Welcome, Guest. Please login or register. Did you miss your activation email?

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.


Messages - Bambo

Pages: [1]
1
General / How to create a simple Enemy class?
« on: September 04, 2011, 05:16:35 pm »
Thanks for replying.

Let me use a different example.

So i want to make a class which you can do something like Text.Create( "Hello" ) its just an example so ignor the fact that its simple to do anyway.

In the class, how would it be structored? the part which I don't really understand is where you Draw or Update it or whatever.

2
General / How to create a simple Enemy class?
« on: September 04, 2011, 01:39:56 pm »
Hey i'm a complete beginner to SFML as you've probably guessed however i've read through most of the tutorial and wanted to create a class which can handle my entity's such as Enemies.

In my enemies class i would like it to be able to update for its logic and draw and stuff but i really can't figure out how it would look. If anyone could help that'd be awesome.

Basicly - How would a class which handles something like an Enemy look like?

Pages: [1]
anything