Ok iv been programming in DBP for along time and i am wanting to start an rpg the right way. I have some questions and will have alot of questions on what to do and how to do along the time of completion. I have started the basic rpg. Here is a screen shot.
People say its a start but i disagree what you see is really whats there i need to make a fighting engine for it but have no idea how i saw Riddi's fighting engine and liked the way he changed the wepons and the distance of the objects but didnt really get the concept of it...i would like it all explained to me. right now just to test the exp and damage done i just did some simple collision.
rem fight cows
FOR c= 206 to 250
if xp=100 then level=level+1
if xp=100 then xp=0
if object collision (2,c) then xp=xp+10
if object collision (2,C) then hide object c :position object c,-100,-100,-100
next c
yes dont laugh at me lol...how is a good fighting engine made? are there secrets or is it just done with OOP...I will start one programming a fighting engine and i will post the code here and hope yall will help me in any way posible.
I also need to learn Ai here is how i move my cows and it looks really weird.
rem move cows
FOR c= 206 to 250
if object angle z(c)=0
yrotate object c,wrapvalue(object angle y(c)+2)
endif
if object angle z(c)=1
yrotate object c,wrapvalue(object angle y(c)-2)
endif
if object angle z(1)=2
move object c,0.05
else
move object c,0.02
endif
rem Switch direction of curve based on a random value
if rnd(80)=1 then zrotate object c,rnd(1)
move object c,1
next c
Again dont laugh at me...How do you get distance from objects that are simulated like this in Next a?
So please guys help me as much as posible i hope others can learn from this too!