click bug and sidescrolling lag


hello again,

 

so i'm working on http://activemediaonline.com/g/ , i've come across 2 bugs haven't been able solve google.

 

all mcs added via code , there's nothing on starting timeline. there other mcs inside mcs though.

 

first click bug. if go above url, you'll see if click on play button taken game itself. have click again work. d move left , right.

 

the game first starts out placing menu on screen calls gamemenu.as file. in file mcs added stage , mouse_down event listeners included on mcs. cleaned after play button clicked.

 

the menu removed, , 3 mcs added stage. have click stage again reason start working, there's no mouse listener active anywhere. thinking has focusing on new objects added, ignorance catches

 

i tried adding menu mcs directly maindocument still same thing. of course if go straight main game without adding menu, works fine.

 

 

now scrolling lag. recreate this, if hold down a, let go, , press d quick, there's bit of lag until ground moves/player animation begins. there no lag when char changes direction though. thought processes large handled, after making ground mc small still lagged right along playloop

 

// ground mc

// mainchar object mainchar.as

case keyboard.d: { //right

                                                  ground.x -= vx;

                                                  mainchar.chardirection("d");

                                                  mainchar.playloop("walking");

                                                  break;

 

 

 

 

 

if want @ code it's zipped activemediaonline.com/g/spartan%20game.zip

 

 

any appreciated.

 

thanks

1. have indeed focus problem, because remove button sets focus inside game.

solution:after assets of game have been loaded, in last line of event.complete listener add sth. this

stage.focus = this;

this should rid of keyboard problem

 

2.i can guess @ second problem might be, since won´t download zipped files unknowns (no offense),

it may have sth. in chardirection/playloop function. post both of these maybe can help.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Thread: gpg: Conflicting Commands

Adobe Acrobat Pro , Terminal Server Use

when i try using AE CC 3d camera tracker after the first step it says "Analysis solve failed." help?