View Single Post
Stijn

Administrator

Joined: Mar 2001

Posts: 6,968

Stijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to beholdStijn is a splendid one to behold

May 20, 2005, 05:12 AM
Stijn is offline
Reply With Quote
I'd rather see something like choosemusic("filename.j2b", true). Or just
Code:
level.music.file = "filename.j2b"
level.music.loop = true
Which would work in the same way for objects:

Code:
player.position.x = 5
or
player.posx = 5
Though the event trigger system of mIRCscript might be useful:

Code:
trigger WARP_ENTER {
  player.position.x = WARP_TARGET[0]
  player.position.y = WARP_TARGET[1]
  print(PLAYER_ID." warped to ".WARP_TARGET." via warp number ".WARP_ID)
}
Where WARP_TARGET and WARP_ID would be assigned a value automatically when WARP_ENTER would be triggered. PLAYER_ID would contain the id/name of the player that triggered the event (or maybe it should be called OBJECT_ID, if other sprites like enemies could also trigger this). The print() function would output text to the console/spy window.

Just some ideas.

Last edited by Stijn; May 20, 2005 at 05:22 AM.