To add to Allan's comment, you can click Crop button on the toolbar and the 1px transparent border will be added to your sprite.
You can also add all x/y coordinates into one array.
You will just have to read values back in pairs. I couldn't find the way to add 2D-array to JSON.
No, you can't do this in object properties. You have to do it with "On every tick" event.
If you want it to shoot only once when left button is clicked - use "On clicked" event.
If you need to continue shooting while the left button is pressed, you can do this:
variable LastShot=0 Mouse Left button is down LastShot<(time-0.5) Player spawn Projectile Set LastShot to time
This will add 0.5s delay between shots.
matrixreal Thanks, it may be a good idea! PMs are disabled on this forum, can you give your email?
Did you restart Construct? You need to do this after adding new addons.
Also, if an addon only supports C2 runtime and your project is using C3 runtime, it will not show up.
The links to addons are in the first part of the tutorial. Also, googling always helps.
Develop games in your browser. Powerful, performant & highly capable.
If you don't need very realistic physics, you can fake it:
dropbox.com/s/m1g65u76qrw7ean/BirdOnWire.c3p
Copy and paste to another frame, flip, copy and paste back.
Variable text="your text here...." Variable result="" Repeat tokencount(text, " ")-1 times if len(tokenat(text, loopindex, " "))<5 Set result to result & tokenat(text, loopindex, " ") & " " // after the loop - trim to remove space at the end: set result to trim(result)
You can split the text using tokenat and tokencount expressions. You will probably need to get rid of all punctuation before doing that (use replace expression).
You can't store multiple words in one variable, you should use an array.
To check the length of each word use len expression.
construct.net/en/make-games/manuals/construct-3/system-reference/system-expressions
Also, check this demo:
howtoconstructdemos.com/split-text-into-separate-words-c3p
Laura_D Thanks!
Yeah, no one likes ads&IAPs in games, but it's of course a necessity. Maybe when (if) Planet-O-Tron becomes successful, I'll add more ads and become reach :)
Member since 26 May, 2016