.Net cross platform library for 2D games using C# and F#. It is a .NET port of the popular Cocos2D engine.
Questions tagged [cocossharp]
76 questions
1
vote
1 answer
ITMS-90809: Deprecated API Usage - Still Getting Warning even the solution is applied
Hi i am developing an application on c# which is using xamarin forms and cocossharp. Everytime i published on the apple store I'm getting a warning:
ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of new apps that use…

Jan Genvher Papica
- 151
- 1
- 12
1
vote
1 answer
cocossharp TilePropertiesForGID(info.Gid) always return null
I am using the CocoSharp.PCL.Shared Nuget version 1.6.2 and I am trying to get the tile property.
Here is the TileSet.tsx:

Christophe Chenel
- 1,802
- 2
- 15
- 46
1
vote
1 answer
Cocosharp - Xamarin - app quit unexpectly
I have an error on Xamarin And CocosSharp (CocosSharp PCL), when I am loading Sprite Sheets the app Closes without error, the code loads around 46 spriteSheets of one animation, in the second animation load at index 5 the apps closes, I have…

Michael Guerra MSPG
- 21
- 3
1
vote
1 answer
Load issue with .tmx file
I've got an issue when I try to load a .tmx file in a CCTileMap CocosSharp object.
Here is the code :
layer2 = new CCLayer();
CCTileMap tileMap;
tileMap = new…

Alexus
- 276
- 1
- 5
- 22
1
vote
1 answer
Add zoom on CocosSharp layer
I'm testing CocosSharp on Visual Studio 2017, I want to perform a zoom on a CCLayer by testing a List of CCTouch elements.
This list is sended by a CCEventListenerTouchAllAtOnce.OnTouchesBegan event.
Here is my code that doesn't work :
private…

Alexus
- 276
- 1
- 5
- 22
1
vote
0 answers
xamarin cocosharp - could not get extensions
trying to install cocossharp on xamarin for mac.
Visual studio was installed successfully!
when trying to use the extension manager I get these messages:
1.
Could not get information from repository:…

Elad Adi Vaknin
- 81
- 4
1
vote
1 answer
How to track the back-button of Android devices?
How is the proper way to catch the back button event in my CocosSharp game? Does it has to happen on the Android project or can it be done in the PCL core?
How is it done?

Martin Braun
- 10,906
- 9
- 64
- 105
1
vote
1 answer
Play music in an xamarin ios app developp with CocosSharp
I currently developing an application in ios with Xamarin and I use CocosSharp.
I try to put some Background music on it and I have an exception that always come :
"Microsoft.Xna.Framework.Content.ContentLoadException
Failed to load the asset file…

Laetitia42
- 127
- 2
- 7
1
vote
0 answers
How to create a mask layer in CocosSharp rectangle?
Is it possible to create a mask layer in Cocoa/CocosSharp??
I was looking here, but couldn't find it. I also googled for this with no luck.
What I want to do, is to create rectangle with a lot of holes.
Something like…

Marvin Law
- 97
- 1
- 2
- 7
1
vote
1 answer
Show CCLabel for few seconds on touch
I'm new to Cocos Sharp and have been struggling to implement behaviour from question title. I want to show message to user that will fade or disappear after some period of time, lats say 3 seconds, after user touches some sprite. But I can't figure…

freshbm
- 5,540
- 5
- 46
- 75
1
vote
0 answers
Build CocosSharp app using Xamarin Studio 6?
For several months I've been building a game using CocosSharp on XS 5. With iOS 10 coming out, it looks like I'm going to have to upgrade to XS 6, but there's no support for CocosSharp.
How would one go about adding CocosSharp support to Xamarin…

AegisToast
- 179
- 3
1
vote
1 answer
Xamarin CocosSharp 2D CCDrawNode memory leak
I'm working on a electrocardiogram diagram with CocosSharp 2D Lolipop 5.1 API22.
I have 332 measures per second.
I Draw a 6425 lines polygon 100 times per second.
I have a Out Of Memory Error at 82 seconds.
drawNode.DrawPolygon(verts,
…

Laurent Perso
- 55
- 8
1
vote
1 answer
b2World.CreateBody returns null with CocosSharp and Box2D
I am playing around with CocosSharp and Box2D. I'm trying to create a world and add a ground body to it. Here's my code:
var gravity = b2Vec2.Zero;
gravity.Set(0f, -9.8f);
world = new…

Brent Edwards
- 175
- 1
- 7
1
vote
0 answers
Animate ScaleX and ScaleY over time with tween not working in CocosSharp
I am trying to animate the ScaleX and ScaleY properties of my Sprite using the following code. Nothing is happening though. I am used to using UIViews and the UIView.Animate method which allows me to set my end result and a duration. Is something…

Jarmez De La Rocha
- 618
- 2
- 9
- 19
1
vote
1 answer
Game wont fully load on Android (Xamarin/CocosSharp)
Let me start by saying that i'm new to Xamarin/Cocossharp and game development in general.
I did a very basic game/application starting from the Cocossharp template for Shared application in VS2015. Now my app works well on WP (Emulator & Device)…

Geo
- 31
- 6