Robot's chase player faster.....
Blitz3D Forums/Blitz3D Programming/Robot's chase player faster.....
| ||
Why are some robots chasing my player faster when there is 2 or more by each other even if the 2nd one isn't chasing the player like the 1st one is, even though the speeds of all robots is set to be the same speed? but when the player is by one robot that isnt by any other robots, the speed is fine? |
| ||
Maybe if you took the brakes off it might help? |
| ||
someone else? |
| ||
Noone can help you without code!!!! |
| ||
i cant show u the WHOLE code. but i can show u part of the code. if i showed u the whole code, thats over 3000 lines. |
| ||
Moveallrobots(): Object_Robot_Create(): Object_Robot_Update(): |
| ||
Post the WHOLE code (make sure it can be run without external media) and be very specific about where YOU think it's going wrong! Without this you are onto plumbs!!! [Edit] Your code I presume? |
| ||
i cant. thats impossible. its so far into the game that with all the includes files, its over 40000 lines. |
| ||
The suggestion is to make NEW code that illustrates the specific problem you're having, that doesn't require it to be a part of the 'whole code' in order to run (and doesn't require the use of any external media either). 40000 lines? That's a lot of cutting and pasting. |
| ||
Out of interest "Rez" are you creating some kind of 'Frankenstein' game, in terms of the code? I mean, are you basically building a game out of pieces of code that you have collated over time. I'm not poking fun at you - I am just wondering if you have been scouring through the archives of Blitz and you are basically assembling a game from bits and pieces that you find and have found interesting and decided to bolt on. It's not a stab at you - it is more a way of understanding your coding style - ie, if you are bolting stuff together, it would stand to reason that you won't always necessarily understand why (whatever) is not working, because you didn't write it all from scratch. I hope that makes sense. I've not read all of your previous threads; however, I am starting to wonder if this is how you are building your game. |
| ||
yes, it's mine. ive been working on it for over 5 years now, it is an rpg ive been working on. RossC would know because he helped me create the code that allows my player to talk to npcs |
| ||
Impossible? 40,000 lines of ALL your own code - behave yourself, unless you've incorporated most of the code archive! Segragate the relevant part(s) and ensure that they do NOT require extenal media and we can maybe help! Running the above helps neither you nor others!!! |
| ||
again, i have been working on it for 5 years. all the examples in the past i have gotten, i have added into the game. |
| ||
i was in 9th grade when i started my project. |
| ||
What age is 9th grade? I direct you to my previous statement. |
| ||
and i direct you to mine. there is NO way i can make it function the EXACT same way it is right now, because it is over 40000 lines long. if i were to make a dummy copy of it, i could never produce the same error. |
| ||
Again, I direct you to my prevous statement .. Without this you are onto plumbs!!! |
| ||
What's plumbs? |
| ||
A tasty fruit or ... Hee Haw as we say in Glasgow! |
| ||
Is one robot continually colliding into the other every frame, thus making one slower? Besides, I thought your code only had 1 robot chase the player at at time. yes, it's mine. BTW, that's not your code you posted, that's MY code. I wrote that for you. That's fine that you use it, I actually want you to use it, just don't claim to write it all when I clearly can recognize my own code that I wrote only 2 weeks ago. THIS IS VERY IMPORTANT REZ And on another note, every time one of those robots goes into pursue the player mode, it creates a pivot for a waypoint. When it returns to that pivot\waypoint later, you MUST delete it. I stressed that before, but you absolutely, positively NEED to free that pivot when the enemy gets back to it, or you'll have huge memory leaks! |
| ||
i cant show u the WHOLE code. but i can show u part of the code. if i showed u the whole code, thats over 3000 lines. i cant. thats impossible. its so far into the game that with all the includes files, its over 40000 lines. Anyone else smell that? What's plumbs? Jacobs'.Rez post a zip file. |
| ||
i DID free the pivot |
| ||
seeing as this is the SAME error from the waypoints thread why in gods name didnt you post in that saying "its still broken and they still do this" |
| ||
Hail! 5 Years? 40 THOUSAND lines of code? Now you got me curious: What kind of game are you creating? Greetings Gridian |
| ||
Pacman clone. |
| ||
:D |
| ||
Inspired by 'Limbo of the Lost' :p |
| ||
Tetris ultimate |
| ||
Pong |
| ||
i told u, gridian. its an rpg -.- |