IGDev You have a problem with Picking You Pick only the slot that is overlapping which is the (Charger) but you don't overlap the Slot = (Battery) to fix this you can reset the picking, one simple way is to call a Function because it starts the picking from scratch https://www.dropbox.com/s/kbwp71crdi08c7o/BateryCharged.capx?dl=0
IGDev
You have a problem with Picking
You Pick only the slot that is overlapping which is the (Charger) but you don't overlap the Slot = (Battery)
to fix this you can reset the picking, one simple way is to call a Function because it starts the picking from scratch
https://www.dropbox.com/s/kbwp71crdi08c7o/BateryCharged.capx?dl=0
Hey, i think this is it, i add one condition and works well i think. i let you know when i find bug )
I am sorry I don't understand any of your explanation
Take look at this
I have seen your code, and I am sorry I cannot make any sense. What are you trying to achieve? Are you trying to make battery charger animation? whatever you trying to do, check your animation frames, also you are trying to spawn DropEqItem on layer 7, where is layer 7?
Layer 7 is not important
When you drag and drop Batery on Charger you receive 'Charger complete' animation (charger with batery inside) but dragged battery is still in slot. Slot with batery should automaticaly change their animation to 'empty' SLOT
anyone?
please take look at capx
Problem is with animation change
https://www.dropbox.com/s/p4g7gg9ef0sp3 ... .capx?dl=0
Yann how should change to display correctly 4 animations? (up down left right)
i just delete diagonal animations but then angles dont display correctly
> > > Just copy that : > str(round(EnemiesKilled/Opponents*10000)/100)&"%" > > . >
>
> Just copy that :
> str(round(EnemiesKilled/Opponents*10000)/100)&"%"
> .
All works fine, but its possible to round up to receive 77% not 76.92% like before?
Sprite font need lot of space to display each character so if less its better to display
Round(x *100)/100 is a good trick to have only two decimals left
Where i should put that code to have only two decimals?
works! thank you so much
but sprite font dont display '%' ;/
Make your counter display : str(round(EnemiesKilled/Opponents*10000)/100)&"%" Round(x *100)/100 is a good trick to have only two decimals left
Make your counter display :
str(round(EnemiesKilled/Opponents*10000)/100)&"%"
On start of layout i count all enemies in layout and add to global variable
for example globalvariable Oponents = 13
for example when i kill 10 enemies
counter should display 76.92% killed
how do that?
When i set in text object 'ok' system set to global variable 2
when text display for example 'good' system set to global variable 4
?
Develop games in your browser. Powerful, performant & highly capable.
can you make something like that?
bump
I need something to show message with icon like this
any solution or plugin to make this?
IGDev X is the maximum value of SP and SM e.g. If SP and SM can each have a maximum value of 150 each then the equation would be: int(100*(SP+SM)/300) ideally you would hold those max values in variables, so the equation would be: int(100*(SP+SM)/(SPmax+SMmax))
X is the maximum value of SP and SM e.g.
If SP and SM can each have a maximum value of 150 each then the equation would be:
int(100*(SP+SM)/300)
ideally you would hold those max values in variables, so the equation would be:
int(100*(SP+SM)/(SPmax+SMmax))
Text object show me on preview
'Infinity %'