Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Syntax Error in the Mappy Script  (Read 917 times)

0 Members and 1 Guest are viewing this topic.

Antidote

>.>
Syntax Error in the Mappy Script
« on: October 30, 2006, 09:54:02 pm »
  • In all seriousness who's serious?
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1485
I found that if I had a multi-row tileset it wouldn't go to the next row so I went investigating and I found out what the problem was:
Daniel messed up the math syntax
so replace:
Code: [Select]
tile_add(mappyTileImage, (mappyTileRemainder * mappyTileSize), ((mappyTileIndex - mappyTileRemainder) / (mappyTilesPerRow * mappyTileSize), mappyTileSize, mappyTileSize, (mappyX * mappyTileSize), (mappyY * mappyTileSize), mappyLayerDepth);
with
Code: [Select]
tile_add(mappyTileImage, (mappyTileRemainder * mappyTileSize), ((mappyTileIndex - mappyTileRemainder)) / (mappyTilesPerRow) * mappyTileSize, mappyTileSize, mappyTileSize, (mappyX * mappyTileSize), (mappyY * mappyTileSize), mappyLayerDepth);
and that should remove that nasty little error.
Logged
  • Axiomatic Data Laboratories
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.052 seconds with 39 queries.