Link to .capx file (required!):
dl.dropbox.com/u/70704903/ForumQuestions/08/problem.capx
Steps to reproduce:
1. Click on sprite
2. Click second frame
3. Try to give a negative value for X or Y position from keyboard
Observed result:
Selected frame skips the other frame
Expected result:
To give a negative value
Browsers affected:
Chrome: yes/no
Firefox: yes/no
Internet Explorer: yes/no
Problem appears before export or preview
Operating system & service pack:
Windows 8
Construct 2 version:
r123
Develop games in your browser. Powerful, performant & highly capable.
Also with adding another instance variable for speed, the effect will be more visible
dl.dropbox.com/u/70704903/ForumQuestions/07/DifferentCreateRates3.capx
Actually their frame rates are 1,2 and 3 second. You can check the instance variable.
Because of it at every 2 seconds, upper 2 sprites firing at the same moment (because 2 dived to 2 and 1), at every 3 seconds, top and bottom sprites firing at the same moment(3 divided to 3 and 1), and every 6 second all of them firing at the same moment (because 6 divided to 1,2 and 3)
If you choose different rates you can see it easily. For demonstrating i uploaded a second one
dl.dropbox.com/u/70704903/ForumQuestions/07/DifferentCreateRates2.capx
Just a possible solution
dl.dropbox.com/u/70704903/ForumQuestions/07/differentcreaterates.capx
Yes. I uploaded other games to Scirra arcade before. And when exporting to arcade construct creates a game.zip file. I uploaded this file. But when i uploaded to dropbox i export as html5 site.
If you click top sprite it restarts layout. So it was not working one time. But game has some bugs. Sometimes On click didn't working
I didn't used any external plugins. I tried my game on dropbox without problem. But at the arcade site, i only see a blank gray screen.
On Scirra arcade
On dropbox
capx
Just a classic. I just started as a hobby project. Code is messy and a little buggy(On click sometimes did'nt work). I also upload the capx. I'm working on other projects now. So i don't have time to look back to this game. I hope that that someone optimize and re-post it. The code piece can also used for creating match 3 style games. I also tried to upload to Scirra Arcade but it didn't worked properly
<img src="http://dl.dropbox.com/u/70704903/ForumQuestions/06/bombsweeper.png" border="0">
Online example
capx file (r123)
I know it's possible to use a param like that;
Function.Param(0)
But i have more functions. I tried this;
Function("Fnc1").Param(0)
But it didn't worked. How can use different functions params.
Thanks
Oh thank you. You are life savers. I will implement the technique in this game
Online demo
capx file
I want to move my sprites to an exact position. In the example project sprites are at 100 pixels in X coordinates. And i want to move them 400 pixels further. So after click, sprites will reach to 500 pixel area. I tried different techniques But none of them works good. Could you help me?
stemkoski has a wonderful tutorial pacman. Same principles can be used
https://www.scirra.com/tutorials/308/cloning-the-classics-pacman
I actually planned them as transparent sprites. But after working one week for Z order, i believe they are buggy. I will try to implement better controls in next build, also i will add keyboard WASD and arrow key support for easy controls. If i could add touch control support it will be super easy but i don't have a device to test.
Member since 13 Feb, 2013