Create maps using data. Help!!!
Root / Programming Questions / [.]
the_squat1115Created:
So, I was searching around here, in SBS. But I just found very complex forms to make DATA-based maps, using the option that I don't like. The OPTION STRICT. If someone has a simplified version, give it to me. Thanks!
You don't need to use OPTION STRICT.
W=5 'width of map DATA H=3 'height of map DATA DIM MAP[W*H] 'first, we make an array COPY MAP,@MAPDATA 'put DATA into array BGLOAD 0,0,0,W,H,MAP 'put array into BG @MAPDATA 'map DATA: each tile has an ID; use smiletool DATA 08,08,08,08,08 DATA 08,75,69,78,08 DATA 08,08,08,08,08 'i put zeroes before the 8s so everything would line up
I found it on: how do I create maps using data?
Srry for mistyping
Also, I had already done it
Srry
Or u can halp me and know more about it
What's wrong with option strict? Sure, it's annoying, but incredibly useful if you make typos. On SB it is really easy to make typos because it is on a touch-screen keyboard.I will prefer the option defint. Also, I have the data map already but I need help with Collision Detection and Movement.
Option defint just makes the default variable type integer. You can do both btw.What's wrong with option strict? Sure, it's annoying, but incredibly useful if you make typos. On SB it is really easy to make typos because it is on a touch-screen keyboard.I will prefer the option defint. Also, I have the data map already but I need help with Collision Detection and Movement.
Or idk... I just said the wrong one? Was the one that has no OPTION I-don't-know? Oh. Just confused.Option defint just makes the default variable type integer. You can do both btw.What's wrong with option strict? Sure, it's annoying, but incredibly useful if you make typos. On SB it is really easy to make typos because it is on a touch-screen keyboard.I will prefer the option defint. Also, I have the data map already but I need help with Collision Detection and Movement.