Is this something new?
Thanks for fast answer
Hi, i have some problem with this. On the beginning everything was just fine, work great, but now the simplest think canot work for me...
Now im trying to make "game" that display AirConsole.DeviceIDJoin on screen for each connected player. It work for 2 player but newer for 3 or more players.
file too airconsole with controler (controler copied from tutorial)
http://alfateam.cal.pl/air/Grawitacja2.zip
and construct2 file:
http://alfateam.cal.pl/air/plik.capx
Posible and quite easy. 2 ways.
When any stat change call function, and this function check player stats and diplay correct animation.
For wind you can use custom movement. Or just change x position of player.
For ice you can change player platform values: decrase acceleration and decceleration.
You drive car. You can turn left or right to avoid obstacles. Llonger you drive faster you trawel so you will crash eventualy.
Idea 2
You menage caravan traweling thrue desert. You can hire worker too carry bagadge. Each worker need to eat. You can find oasa to gain some water and food. You can be hit by sandstorm, atacked by lions so you lose some worker. Player can set camp to rest or return to home and fight the desert next time.goal is to cross whole desert. Player can die from starwation lack of water or be killed by animal.
Easy.
This all things hapend every tick. So when your player is close to enemy it wait random time then attack. But it hapend every time so for example 60 times per second. So script will do this 60 times. Script wait random time 60 times per second and then attack 60 time per second.
You must add boolean isattacking. When is attacking is true dont attack. When you attack before wait set isattacking to true. And after animation attack end set isattacking to false. At start isattacking is false.
Reverse the sequence or use OR logic word.
Now you can try airconsole.
Whats wrong with multiple layouts? What kind of problem you have?
Just remember that you can set some layers as constans. For example hud. So you dont have to copy past them.
That work perfectly, thanks!
I was trying something like:
(-WindowWidth+OriginalWindowWidth*WindowHeight/OriginalWindowHeight)/2
(-WindowWidth+OriginalWindowWidth)/2
(-WindowWidth+OriginalWindowWidth)/(2*WindowHeight/OriginalWindowHeight)
Develop games in your browser. Powerful, performant & highly capable.
I have a problem with calculating sprite position.
I use "Fullscrean in browser"="Scale outer"
In hud layout (parallax = 0,0) I have object and it should fill all the screen but not more, so it must start in left-top corner and end exactly in right-bottom corner.
But I dont knew how to do this with "Scale outer" and parallax = 0,0
https://www.dropbox.com/s/f1z4qwf13aej2a1/test.capx?dl=0
Member since 27 Feb, 2014