3.4 version
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
3.4 version
Command DRAW DASH will have new option PHASE:
DRAW DASH x PHASE y
sets dashed line with interval [x]. Value 0 sets solid line.
Example of setting dashed line:
DRAW DASH 10
You can also use custom dash pattern by specifying multiple values indicating solid and space intervals. Example:
DRAW DASH 20,10,1,10
Parameter PHASE sets offset of dash pattern from the beginning of line for [y] points. Parameter PHASE is optional.
DRAW DASH x PHASE y
sets dashed line with interval [x]. Value 0 sets solid line.
Example of setting dashed line:
DRAW DASH 10
You can also use custom dash pattern by specifying multiple values indicating solid and space intervals. Example:
DRAW DASH 20,10,1,10
Parameter PHASE sets offset of dash pattern from the beginning of line for [y] points. Parameter PHASE is optional.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.4 version
New function to detect sprites collision will be added:
SPRITES_COLLIDE (a$, b$)
returns 1 if sprite with name [a$] is currently colliding with sprite [b$], otherwise returns 0.
SPRITES_COLLIDE (a$, b$)
returns 1 if sprite with name [a$] is currently colliding with sprite [b$], otherwise returns 0.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.4 version
Commands GET IMAGE SIZE and DRAW IMAGE will respect dpi of the image.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.4 version
New command will be added:
GET IMAGE n$ DPI_SCALE s
gets dpi-scale of image [n$] to variable [s]. When dpi is 72 the scale is equal to 1.
Manual for command GET IMAGE SIZE will be updated:
GET IMAGE n$ SIZE w,h
gets width and height of image [n$] to variables [w] and [h], in points. To get image width and height in pixels they should be multiplied to image dpi-scale.
GET IMAGE n$ DPI_SCALE s
gets dpi-scale of image [n$] to variable [s]. When dpi is 72 the scale is equal to 1.
Manual for command GET IMAGE SIZE will be updated:
GET IMAGE n$ SIZE w,h
gets width and height of image [n$] to variables [w] and [h], in points. To get image width and height in pixels they should be multiplied to image dpi-scale.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.4 version
Command SPRITE SAVE will be able to save multi-frame sprites:
SPRITE n$ SAVE f$
saves sprite with name [n$] to image file [f$]. Multi-frame sprite is saved as sprite sheet. Valid image file types are: JPG, PNG. If file extension is not set then PNG file type is used.
Examples of sprite sheets, created when saving multi-frame sprites:
SPRITE n$ SAVE f$
saves sprite with name [n$] to image file [f$]. Multi-frame sprite is saved as sprite sheet. Valid image file types are: JPG, PNG. If file extension is not set then PNG file type is used.
Examples of sprite sheets, created when saving multi-frame sprites:
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.4 version
Command SPRITE LOAD will be able to load animated GIF files as multi-frame sprites.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.4 version
Sprites will be correctly displayed in iOS 7.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.4 version
New commands will be added:
OPTION SPRITE POS CENTRAL
OPTION SPRITE POS NORMAL
set sprites position mode: "CENTRAL" - sprite position coordinates set center of the sprite; "NORMAL" - sprite position coordinates set top left corner of the sprite. Default is NORMAL.
OPTION SPRITE POS CENTRAL
OPTION SPRITE POS NORMAL
set sprites position mode: "CENTRAL" - sprite position coordinates set center of the sprite; "NORMAL" - sprite position coordinates set top left corner of the sprite. Default is NORMAL.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.4 version
New commands will be added:
GET SPRITE n$ DPI_SCALE s
gets dpi-scale of sprite [n$] to variable [s]. When dpi is 72 the scale is equal to 1.
GET SPRITE n$ SIZE w,h
gets width and height of sprite [n$] to variables [w] and [h], in points. To get sprite width and height in pixels they should be multiplied to sprite dpi-scale.
GET SPRITE n$ DPI_SCALE s
gets dpi-scale of sprite [n$] to variable [s]. When dpi is 72 the scale is equal to 1.
GET SPRITE n$ SIZE w,h
gets width and height of sprite [n$] to variables [w] and [h], in points. To get sprite width and height in pixels they should be multiplied to sprite dpi-scale.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.4 version
New command will be added:
SPRITE n$ SWAY
starts animation for multi-frame sprite [n$]. When the end of animation cycle is reached, animation starts in the opposite direction of cycle. Animation loops infinitely.
Manual for command SPRITE LOOP will be updated:
SPRITE n$ LOOP
starts animation for multi-frame sprite [n$]. When the end of animation cycle is reached, animation starts from the beginning. Animation loops infinitely.
SPRITE n$ SWAY
starts animation for multi-frame sprite [n$]. When the end of animation cycle is reached, animation starts in the opposite direction of cycle. Animation loops infinitely.
Manual for command SPRITE LOOP will be updated:
SPRITE n$ LOOP
starts animation for multi-frame sprite [n$]. When the end of animation cycle is reached, animation starts from the beginning. Animation loops infinitely.