Jump to content
Turtlix21

Problem with changing car position in 2D game.

Recommended Posts

Turtlix21

I'm trying to make simple game in autoit. But I found one problem what I can't solve.

I load a 2D map, but I can't change position of cars. Probably problem is in funcion what changing cars positon, becouse new car position is load for small moment and next disappears. If i want to keep new place of car I must put command in loop, but if i did it script stay in loop and i cant do anythig. 

I found resolution but i think its not good, I can load map (250 pictures) in all loop runs.

Is there a better solution?

BTW.
Firstly im trying to load all combinations of map but i cant load more than ~10000 pictures

Share this post


Link to post
Share on other sites
Xandy

Post code I'll look at it.

Probably should upload a zip with all the graphics and dependencies.

AFK 20 minute break.

Edited by Xandy
  • Like 1

Share this post


Link to post
Share on other sites
Turtlix21

Link to game

BTW.
I've next solution, it's probably better, i can load map one time and in all loop runs load only cars

  • Like 1

Share this post


Link to post
Share on other sites
Xandy

Very odd error,

Error : couldn't open input file: D:\Programming\Current Versions\AutoIt\Examine\czolgi\Server.au3

the file is not compressed I don't know what I am doing.  Sorry.  :(

Edited by Xandy
  • Like 1

Share this post


Link to post
Share on other sites
Turtlix21

I found problem, all cars was hide under the map :P  (i found problem when i trying to edit code descriptions to english to you and i forget to put map.jpg in folder, so u helped me :D

thank to try to help

Edited by Turtlix21
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×