?

Log in

No account? Create an account
Shards Reflections History The Great Maker Previous Previous Next Next
Meh, for one of the projects I'll have to submit a working version of… - Eldoran: Shattered Images
Huh?
sir_eldoran
sir_eldoran
Meh, for one of the projects I'll have to submit a working version of Pacman made in Director...
The programming is a bit uncomfortable, the whole script goes through a loop an infinite amount of times, therefore instead of making loops for repeating stuff - I have to break my neck trying to make the stuff that needs to be executed once do just that. Declaring global variables in at least a dozen different places is sort of stupid as well. If I won't redeclare a global variable, already declared in the main script, in a behaviour script for something - the value will reset every time the script will try to modify it. Just weird :-/
Got some sort of a maze and some behaviour patterns done, Pacman himself is sort of running, though navigation will have to be redone.
Now the funny thing was when I tried to make the ghost actually move, instead of chaotically jumping around like a mad chimpanzee during a mating season... Copied the movement script from Pacman, replaced the keyboard input with coordinate comparison, divided the ghosts into two groups, preferring difference axiss... Sounds simple...

Bloody bastards spread out, surrounded the area, locked in on me, CORPSE CAMPED me into minus several thousand lives, and then the comp hanged O_o

Back to the drawing board...

Oh, and btw, some concept are!



Edit: Semagic keeps annoying me with "your password is easy to guess" messages... Is something very similar to "atyjvtyfkmyj" that easy to guess?
3 Shadows Roam , Poke Me
Comments
From: maksi851222 Date: October 31st, 2005 05:30 pm (UTC) (Link)
"...divided the ghosts into two groups, preferring difference axiss..."

Eto, xtati, ne tak uzh uzhasno slozhno. Opisyvaesh dvizhenie slu4ajnym 4islom, naprimer x prinadlezhit intervalu [0;k), gde k - konstanta, a x - slu4ajnoe 4islo ot 0 do 1, to ghost dvizhetsa po vertikali, a esli x prinadlezhit [k;1), to po gorizontali. Delaesh k neravnym 0.5 - vot te i preferring different axiss :) Dejstvitelno fignia :) A esli posidet, to navena esche prosche mozhno sdelat :)

Esche mozhno vpixnut koefficient, kotoryj korrektiruet dvizhenie (t.e. x) esli Pacman naxoditsa blizko :) Togda oni za nim goniatsa na4nut :)
sir_eldoran From: sir_eldoran Date: October 31st, 2005 05:32 pm (UTC) (Link)
Не, проблемы тут нет, рандом - это легко, просто я решил сделать покруче, чтобы они наводкой на пакмана шли, и вышло что они слишком круто это делают :)
From: maksi851222 Date: October 31st, 2005 05:40 pm (UTC) (Link)
Nu vot vidish, nado moim sposobom delat :D Togda vse ok budet :) Budut ne priamoj navodkoj, a esche i bluzhdat nemnogo po doroge, t.e. ostaetsa nebolshoj shans i ubezhat potom :D
3 Shadows Roam , Poke Me