i now this is a newbie question but i would like for you to help me please.
i my rpg test everything os working as planned, now the second phase for me is to multiply the enemies that walks in the map.
i know i have to convert my code from "1 enemy" to several enemies. i know i have to use types and this is my problem i dont understand them very good.
acctually i have the following code for the enemy:
Global imgEnemyV=LoadImage("walking.PNG")
EnemyX=rand(0,640)
EnemyY=rand(0,480)
EnemySpd#=0.5
then to use this enemy i do a move the enemy and then draws it:
drawimage imgEnemyV,EnemyX,EnemyY
can somebody tell me how to covert this into a 'type' model to create 5 or more enemies?
maybe it can be something like:
type enemy
x=rand(0,640)
y=rand(0,480)
spd#=0.5
but how to create more enemies in one shoot for the level?
thanks a lot.
matt.
i my rpg test everything os working as planned, now the second phase for me is to multiply the enemies that walks in the map.
i know i have to convert my code from "1 enemy" to several enemies. i know i have to use types and this is my problem i dont understand them very good.
acctually i have the following code for the enemy:
Global imgEnemyV=LoadImage("walking.PNG")
EnemyX=rand(0,640)
EnemyY=rand(0,480)
EnemySpd#=0.5
then to use this enemy i do a move the enemy and then draws it:
drawimage imgEnemyV,EnemyX,EnemyY
can somebody tell me how to covert this into a 'type' model to create 5 or more enemies?
maybe it can be something like:
type enemy
x=rand(0,640)
y=rand(0,480)
spd#=0.5
but how to create more enemies in one shoot for the level?
thanks a lot.
matt.