Point Seclusion
Friday March 29, 2024, 10:57:29 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Post, Review, and Recruit
 
  Home Help Search Arcade Gallery Links Staff List Calendar Members Login Register  

Help with a crazy script

Pages: [1]   Go Down
  Print  
Author Topic: Help with a crazy script  (Read 128 times)
0 Members and 1 Guest are viewing this topic.
Blarblarbman
Newbie
*
Offline Offline

Newgrounds Alias: Blarblarbman
YouTube ID: Blarblarbman
Posts: 6



View Profile
« on: Sunday December 14, 2008, 10:48:37 am »

I'm having a problem with a script.
There's a portal in the level with a script:

on (release) {
gotoAndStop("Scene 4",1);
}

onClipEvent (enterFrame) {
if(_root.moveLeft == true){
this._x += 4;
}
if(_root.moveUp == true){
this._y += 4;
}
if(_root.moveDown == true){
this._y -= 4;
}
if(_root.moveRight == true){
this._x -= 4;
}
}

This script makes the portal in my game stay in place as the hero moves.
When I click on the portal, nothing happens. I had also made a button with just:

on (release) {
gotoAndStop("Scene 4",1);
}

And it worked.
The button works, but the portal doesn't.
Can someone with experience help me out?
Thanks.
Report Spam   Report to moderator   Logged

Share on Facebook Share on Twitter



Pages: [1]   Go Up
  Print  
 
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy