3.4 version

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

3.4 version

Post by Mr. Kibernetik »

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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.4 version

Post by Mr. Kibernetik »

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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.4 version

Post by Mr. Kibernetik »

Commands GET IMAGE SIZE and DRAW IMAGE will respect dpi of the image.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.4 version

Post by Mr. Kibernetik »

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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.4 version

Post by Mr. Kibernetik »

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:
test3.png
test3.png (1.89 KiB) Viewed 2792 times
test4.png
test4.png (2.42 KiB) Viewed 2792 times
test8.png
test8.png (4.89 KiB) Viewed 2792 times

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.4 version

Post by Mr. Kibernetik »

Command SPRITE LOAD will be able to load animated GIF files as multi-frame sprites.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.4 version

Post by Mr. Kibernetik »

Sprites will be correctly displayed in iOS 7.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.4 version

Post by Mr. Kibernetik »

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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.4 version

Post by Mr. Kibernetik »

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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.4 version

Post by Mr. Kibernetik »

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.

Post Reply