Jump to content

set collision from variable


vediban
 Share

Recommended Posts

Hello,

var collides_full="28,30,32,198,200,202,250,254,302,304,306,380,382,384,637,653,837,838,839,840,841,842,843,844,845,846,847,848,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082";
map.setCollision([collides_full]);

map.setCollision([collides_full]); cannot take variable value. How can i get variable "collides_full" variable value?

Link to comment
Share on other sites

var collides_full = [28,30,32,198,200,202,250,254,302,304,306,380,382,384,637,653,837,838,839,840,841,842,843,844,845,846,847,848,987,988,989,990,991,992,993,994,995,996,997,998,999,1000,1001,1002,1003,1004,1005,1006,1007,1008,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082];

map.setCollision(collides_full);

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...