AndreasR's Recent Forum Activity

  • Please anyone can help me here.? I just want ads shows inside the game, admob cocoon plugin does not work, it shows black screen, and coedeva plugins also not working with coocon, the ads not shown at all, the game works good with admob coedeva plugin but the ads did not show.

    I'm not sure why it doesn't work on your end.

    For me it's working well.

    So it must be a misconfiguration or a missing plugin. However if you have installed the plugins, it should work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • AndreasR

    I think what happens is that your "Player is on screen" event is triggered first on start of the tick, before the Pin behavior does its job.

    You set position of Hair to the PlayerAnimation sprite that hasn't moved yet. After that Pin behavior adjusts PlayerAnimation position to Player sprite, and the Hair stays behind (lags).

    If instead of pinning PlayerAnimation to Player, you do "PlayerAnimation Set position to Player" (the same as you do with hair), then there is no lag.

    You should use either Pin behaviors, or "Set position" actions, not the combination of both.

    Hi dop2000

    I got it working now. I set the position of the player animation to the player every tick, but I pin the accessories to the player animation.

    Now it doesn't lag afterwards!

    Thanks for the hints!

    Regards

    Andy

  • Ok I figured something out.

    I have a rectangle sprite as player (for collision box). This object has the platform behavior.

    To this object I have pinned the player animation (another sprite object). This object is not lagging behind.

    So to the player animation I have pinned the accessories, like glasses, hair and so on to its corressponding image point.

    This objects are lagging behind, because the aren't pinned to the actually moving object.

    If I pin them to the player object having the platform behavior, those objects also stop lagging behind.

    Any ideas why this is happening?

    Edit: Made an example

    https://www.dropbox.com/s/sgp3iaustgamk ... .capx?dl=1

  • There is a behaviour called pin+ which have a ton of pin options and pin to image point is one of them. Just select which image point and it will pin it correctly wherever that image point is on the object during an animation.

    I use this behaviour for all my games now and is one of my most used plugins.

    You can also pin animation, mirror, scale, opacity and best of all. You can automatically destroy the pinned object if the object it is pinned to is destroyed which makes the original pin behaviour useless in comparison Highly recommended

    Hi,

    thanks for that hint, I'll try out this one

    Thank you!

  • AndreasR

    if I remember correctly the Pin behavior is the same as Every Thick set position, so wouldn't be easier to do?

    Every Thick: object1 >>Set position to (base_object) image point 1

    like this doesn't matter where you place the image point in different animations as long that animation has the image point will be placed on the correct spot

    Hi,

    I actually did that before. However when the player moves fast, the pinned object laggs after it.

    But it also happens with rexrainbow behavoir PinToImagePoint.

    I'll try the Pin+ behavior, maybe this works.

    Or has anybody an idea how to prevent the pinned object from lagging behind?

    My player object hast the platform behavior. And when it starts moving, the pinned objects are lagging behind...

  • Hi,

    I have a player animation with diffrent imagepoints for its hair, glasses and so on.

    On creation I spawn the objects (hair, glasses and so on) at the corresponding image point and then I pin it to the playeranimation.

    However the player animation, well is an animation and the image points are on diffrent positions at each frame.

    So my question is, is it possible to pin an object to the image point? So if the image points moves while playing the animation, so that the pinned objects follow the image point?

    Ashley is this even possible with the Pin behavior?

    Edit: Found out that rexrainbow already made such a behavior, thanks man!

    Thank you!

  • Hi Marc,

    I wouldn't let this in the game. You can mail me your capx file and I'll find the spot where the interstitial is called.

    Regards

    Andy

  • Hi,

    no I mean the plugin at cocoon.

    The one shown in the first picture.

    Try to remove the Crosswalk engine. You must always delete the config.xml file before you zip your c2 export.

    That's why the crosswalk plugin is installed at all.

    I recommend you to make a fresh project at cocoon, export your game from c2, delete the config.xml file, zip it and upload it as new project.

    Then add all needed plugins and try again.

    Regards

    Andy

  • Hi,

    it's because you must add the plugin also at your cocoon project.

    Just go to cocoon -> Your project -> Settings -> Plugins - >Cocoon -> Type "Admob" and install the admob plugin for android and / or ios.

    You find a guide here

    https://shatter-box.com/knowledgebase/cocoonio/

    Regards

  • Hello

    I bought your template and it is working very well.

    Thank you for your job.

    The only issue I have here is the interstitial.

    When the purchase is done, banner is hidden but not the interstitial.

    How can I get the interstitial also hidden?

    Thank you

    Regards

    Hi,

    thank you for your purchase. The template uses a variable "ShowAds" which is 1 if the player hasn't purchased the "Remove Ads" perk.

    So just add a new condition "System -> compare variable -> ShowAds == 1" to the event where the interstitial is shown.

    Then no interstitial should be shown when the Remove Ads perk has been purchased.

    If this doesn't work for you, please open a ticket here and attach your capx file.

    https://shatter-box.com/tickets/

    I'll check it then for you.

    Regards Andy

  • >

    >

    > do you think you can add a function allowing to change the horizontal / vertical alignment and the hotspot at runtime?

    > At the moment those actions do not exist.

    >

    > Thank you!

    >

    > Regards

    > Andy

    >

    Hey AndreasR,

    I could do it, but there's no need because I know skymen is already working on such plugin. He already made the Text Alignment and will release the SpriteFont type one soon as well.

    That sounds great. Thanks for that hint!

    Then I'll wait for this plugin to be released

  • I'm just reposting SpriteFont+ by thechriskent plugin here (it's not my plugin).

    Original thread:

    An author of this plugin is no longer part of Construct Community and the JS code had unnecessary console.log line (read more here) so I disabled this line and reposting the plugin here as requested in the original thread.

    I could have posted it in the original thread but it would eventually got lost among a lot of future pages, so I decided to make a new thread instead.

    Download: SpriteFont+ (cleaned)

    do you think you can add a function allowing to change the horizontal / vertical alignment and the hotspot at runtime?

    At the moment those actions do not exist.

    Thank you!

    Regards

    Andy

AndreasR's avatar

AndreasR

Member since 21 Feb, 2013

Twitter
AndreasR has 6 followers

Connect with AndreasR

Trophy Case

  • 11-Year Club
  • x11
    Popular Game One of your games has over 1,000 players
  • x17
    Coach One of your tutorials has over 1,000 readers
  • x2
    Educator One of your tutorials has over 10,000 readers
  • Email Verified

Progress

15/44
How to earn trophies