Stencyl 3.4.0 is now out. Get it now!

Shared Mechanics

SomeT

  • *
  • Posts: 143
OK but would I apply that behaviour to the fragment, main actor the fragments are coming from or the main game scene? I can not seem to get this working at all, could you show me an example overall of using this behaviour explode on death in relation to also creating the condition to destroy each fragment so it does not crash my game?

« Last Edit: January 29, 2017, 10:35:04 am by SomeT »

squeeb

  • Posts: 1142
here ya go my friend.. maybe make the fragment simple physics? 

<a href="http://static.stencyl.com/games/36004-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/36004-0.swf</a>


SomeT

  • *
  • Posts: 143
Many thanks, will have a proper look over the next few days.

squeeb

  • Posts: 1142
No worries.   I'd like to see what you make. I love particle effects haha

SomeT

  • *
  • Posts: 143
Yeah I will post it somewhere here on the forums when I am complete, just I have a lot of other work to do, so getting less and less time at the min, hopefully will finish by summer time at some point. I try and split all my problems up and work through them one at a time when I can.

thechaosengine

  • *
  • Posts: 327
Whoa, this thread is awesome! To contribute, I spent some time turning my mobile cross promotion setup into its own behaviour.



Basically it pulls an image and some other data from a server you set up and uses it in your game. The idea behind this is that when you release a new game, you can "advertise" it in your earlier releases.

What you'll need:
- the behaviour attached to the scene you want to show the image on
- webspace
- As many images as you need, 584x584 pixels in size.
- a .txt file that contains the link to the image followed by the link you want the image to have (when a player then clicks on the image it will open, for example, the app store page for that game). Each image and its link should be on one line, separated by a "," like this:



You can also add one more thing after the link, a number that will be used as the frequency of which ads are shown. This allows you to change a game without updating and resubmitting it to the app store, like if you get too many complaints from players about too many ads being shown.

 
You upload the images and the .txt to your webspace, and then point the behaviour to the url where the .txt is stored, and you're all set!   


ceosol

  • *
  • Posts: 2148
Pretty neat TCE. I definitely think cross promotion is a good idea once you have some popular games.

squeeb

  • Posts: 1142
Pretty neat TCE. I definitely think cross promotion is a good idea once you have some popular games.

I agree!! thats awesome.. all my links are hard coded in, i have to go back and update them. ill be trying this out for sure!! thank you

thechaosengine

  • *
  • Posts: 327
Pretty neat TCE. I definitely think cross promotion is a good idea once you have some popular games.

I agree!! thats awesome.. all my links are hard coded in, i have to go back and update them. ill be trying this out for sure!! thank you

Yup, that's the thing. Having to update older games just to add a new link sucks, this system takes care of that :)

Bhoopalan

  • *
  • Posts: 997
Interesting stuffs being shared here!! I wanted to share something pretty small. Not even sure if it's worth it.

Manual Gravity:

For a recent game, I wanted manual gravity as there would be two actors with different gravity. This is the actor behavior that works exactly as an actor enabled gravity.

Want to see it in action? In the below gif, one actor is gravity enabled and one actor has the behavior. Find out which is which ;)

Note: There's an attribute with the name 'Pixels to move actor'. Set the actor value to the 1 100th of the gravity you may want to set.

For example: If you would have set the scene gravity to 85 but want manual gravity, then you will have to set the above attribute value to 0.85.


« Last Edit: May 12, 2017, 10:10:22 pm by Bhoopalan »
If I helped you at anytime, help me back build my twitter followers :)
https://twitter.com/imbhoopalan

ceosol

  • *
  • Posts: 2148
I'm quite proud of this one. It takes a list of images and a list of image instances. It checks if the mouse (or paintbrush in this case) is over top of one of the instances and then paints on the image.

LIBERADO

  • *
  • Posts: 2487


<a href="http://static.stencyl.com/games/37931-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/37931-0.swf</a>
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

LIBERADO

  • *
  • Posts: 2487
Now with three revolute joints and the bezier curve code to get flexible ropes effect:
   
<a href="http://static.stencyl.com/games/37934-0.swf" target="_blank" class="new_win">http://static.stencyl.com/games/37934-0.swf</a>
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

ceosol

  • *
  • Posts: 2148
Liberado, you are a wizard :)

LIBERADO

  • *
  • Posts: 2487
@ceosol thanks, your works are great too.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.