Games Achievements My Kong Sign In

safara179's messages

Public messages for safara179

avatar for Mastercool2
Mastercool2

May 29, 2008 8:21am

did it help you ?
i notived that your games already have borders

avatar for Mastercool2
Mastercool2

May 29, 2008 7:30am

hay !
do you have flash 8 or 9 ?
I think you wrote a code like

onClipEvent(enterFrame){
if (Key.isDown(Key.UP)){
this.y -=15;
}
if (Key.isDown(Key.DOWN)){
this.y +=15;
}
if (Key.isDown(Key.LEFT)){
this.x -=15;
}
if (Key.isDown(Key.RIGHT)){
this.x +=15;
}
}
right ?
you just need to make 4 boarders out of lines, convert them to 4 symbol ( I named mine objecttop , objectleft objectright objectdown) and change the code to
onClipEvent(enterFrame){
if (Key.isDown(Key.UP)&& this.hitTest(root.objecttop)==false){
this.y -=15;
}
if (Key.isDown(Key.DOWN)&& this.hitTest(
root.objectdown)==false){
this.
y +=15;
}
if (Key.isDown(Key.LEFT)&& this.hitTest(
root.objectleft)==false){
this.
x -=15;
}
if (Key.isDown(Key.RIGHT) && this.hitTest(
root.objectright)==false){
this.
x +=15;
}
}

show more
avatar for freetiger18
freetiger18

May 27, 2008 6:58am

I started playing on Kong many days ago l.l

Developers Players Support YouTube TikTok X (Twitter) LinkedIn
Join the conversation Join Discord
Terms of Service Privacy Policy Code of Conduct
© 2025 Kongregate