Hey guys,
I just got DBPro yesterday and worked through the tuts here last night:
http://forum.thegamecreators.com/?m=forum_view&t=63411&b=7
Which are so incredibly helful, I was blown away with how much I was learning so quickly - as I didnt copy and paste them, I printed them out and followed them through step by step.
Zotoaster's second FPS tutorial just got me started so well with arrays and the basics of coding.
The only things missing were player health / lives and a scoring system (which I succesfully added
) and collison - which I tried to add unsuccesfully.
I then tried just using the dist. command to DEC plrhealth#. Then when the plrhealth was <=0 then it reduced the plrlives and reset the health.
Is this a bad way of doing it? It worked nicely, but I felt I was merely 'working round' the problem as opposed to challenging it.
My question is more of where do I call the collision? Do I add this to the top of the code where I am calling my variables and setting the enemy stats, or in the DO loop?
Dont I have to tell the code that;
A) The player (object 1) has collision and what type it is.
B) The enemies (arrays, enemy(e).) have collison and what type it is. &
C) When the collision occurs, what to do next.
Am I right in thinking this?
I tried looking at some other tuts on this subject, but couldnt quite figure how to work them into my code.
Im at work at the mo, so can repost with the code if necessary, although it is merely a slightly modded version of Zotoasters tutorial code (below)
Many thanks - Im looking forward to getting my head down and these basics nailed before I even think of making any games! Any help muchos appreciasios.
Mabuggi.
DAB Studios