Page 1 of 1

im new and need help

PostPosted: Thu Jul 05, 2007 3:50 pm
by malpal1122
im new to game editor. most of the funtion i understand but there some things i need to know

1.how do i get my game to my cell phone

2.how do you make an enemy attack you at free will

plz i really need help

PostPosted: Sat Jul 07, 2007 7:07 pm
by Troodon
1. It was described once somewhere but I didn't find with the forum search. I think you needed a special phone and a paid service to do that. (But I'm not sure)

2. Can you describe "free will" more?

answer

PostPosted: Sun Jul 08, 2007 10:28 am
by SnowFear
1. i dont know =P

2. its called AI script, and i have no idea how to create one, you can ask for one in the forum.

PostPosted: Sun Jul 08, 2007 3:10 pm
by DocRabbit
1. What kind of cellphone, pocketPC?
If pocketPC use your active-sync to explore your pocetpc device and put it, The compiled version(exe) of your game, in whatever folder you want. If other cell phone type, don't know on those.

2.Enemy attack at will. The most basic form would be like a proximity check for distance of enemy from player, if falls within certain distance, have enemy moveto player at directional_velocity. You could use a formula calculating distance into a speed factor. Start slow and move faster closer enemy got would be something like:
Code: Select all
attackspeed = seednumber/(distance(opponent.x, opponent.y, player.x, player.y))*multiplier;
Both seednumber and multiplier would be variables you would need to declare along with attackspeed. So lets say enemy starts at 50 units away, you could make seednumber=100 and multiplier say .5. Then at 50 units away, he would start with a speed of 1. With half distance closed(25 units away) his speed would be 2. You would need to stop him 1 unit prior to reaching the player so that a divide by zero would be avoided, but you should have a collision before you would reach that anyways. I will try to work up some more substantial coding for you to look at, maybe even a little demo to show how.