LittleStain's Forum Posts

  • As far as I know there is no way to select all objects based on the fact that they have solid behaviour itself..

    But you could use the condition sprite - solid is enabled for each of the objects concerned?

    I guess doing it with families and giving the family the solid behaviour would be the way to go..

  • Ok LittleStain here is what I did following your suggestion. Does this look right to you? The event that says "Create object game over" is gonna be replaced by the actual shake, which I haven't created the events for yet, I just haven't gotten around to it yet. I'm thinking of putting those events in a function and then just replacing the "Create object game over" event to call on that function.

    This seems like what I was trying to suggest, does it get the results you were aiming for?

    Putting it in a function or temporarily enabling a group would be the way to go for the shake itself I guess..

  • I have used these plugins and do not work on my game

    - com.cranberrygame.phonegap.plugin.ad.adm­ob

    - com.google.cordova.admob

    - com.admob.plugin

    It seems like others have gotten it to work..

    So reading the manual, following tutorials and maybe looking at the explanations in the link I posted should be able to get you there..

  • From the manual entry about sprites

    Load image from URL

    Load an image from a given URL. The current animation frame will be replaced with the image. It is not shown until the image has finished downloading, and On image URL loaded triggers. Images loaded from different domains are subject to the same cross-domain restrictions as AJAX requests - for more information see the section on cross-domain in the AJAX object. Data URIs can also be passed as an image, e.g. from a canvas snapshot or webcam image. The Size parameter sets whether the Sprite object will be set to the image size when it loads, or whether to keep its current size and stretch the image.

  • From the manual entry found above:

    The file URL can be used like any other URL. For example, it can be requested by the AJAX object to load its contents as text, or passed to the Sprite object's Load image from URL action to display it.

  • Seems like you got it working..

    Ofcourse there are more than one way to do this..

    I'm not sure what you want when you say go to the next level if score is less than 3

    How would the player go to the next level (push a button to skip)?

    Why would the player go to the next level if this one is not completed?

    When would the player go to the next level (which conditions should be met)?

  • Just thinking out loud..

    you could start a timer on the first ball destroyed, add to a global variable for each ball and check if on timer the variable is the amount you want, or if the amount is reached before the timer ends, maybe deducting from the variable on timer end..

    Well so many ideas made possible by the timer-behaviour, choose the one that suits you..

  • At the moment, 7 topics below this one there is a topic about admob..

    I didn't even have to use the search this time..

  • No need for a plugin..

    there is the filechooser-object and the load image from url event..

    Manual entry about file chooser

  • You should pick the nearest to the position of the family..

    Here's an example with 2 sprites

    https://dl.dropboxusercontent.com/u/48563442/pinto.capx

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Would this work for you?

    for each family1

    pick nearest family2

    family2 pin to family1

  • without seeing your capx or at least the events you use it's near impossible to say what your issue is and to come up with a solution..

    right now I'm thinking that once you tap and the blue portal is created automatically the event to create the red portal is true and therefor it will be created..

    Changing the order of events or using an else event will solve this immediately..

    But well, without seeing the events this is all just a guess..

  • Just brainstorming:

    I would divide the play into parts (in the event sheet you could use groups for this)

    1 - ball gets thrown/player hits

    2 - ball is flying/ fielders walk

    3 - ball is with fielder/ fielder throws

    By disabling/enabling the groups depending on what part of the play is in action, you can have specific events/conditions for that part.

    This would probably make a huge difference in readability for your event-sheet as well..

    A game like this consists of many or even an enormous amount of conditions depending on how "realistic" you'd like to make it ..

  • These Tiles are sprites?

    I guess either using the pin behaviour, or using container, or referencing the normal maps by UID or another way of picking the right one would do..

  • It would be much easier to understand the problem and come up with a solution if you shared your capx..

    Could you explain in greater detail what the effect is you are aiming for?

    Would you like to prevent the overlapping of the objects?

    Would you not want to use transparancy?

    Could you give an example of what the endresult should look like in your opinion?