Hello Guest

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Re: MonoDevelop - Fedora 25 - mono 4.8.0
« Last post by PerryLan on May 15, 2017, 01:58:25 AM »
I don't see why the original code wouldn't work.
2
Help / Otter Slack Team
« Last post by Kyle on April 27, 2017, 05:26:22 PM »
The Otter community is much more active on Slack!

Join up here: http://otter2d.com/slack.php
3
General / Re: Saving and Loading
« Last post by Kyle on April 27, 2017, 05:23:56 PM »
Hey sorry I have been not checking the forums since we're all pretty much over on Slack these days.

There is a DataSaver class with some very simple functionality for saving and loading data.
4
Help / Re: Multiple graphics in one Entity - location question
« Last post by bacek on February 21, 2017, 09:40:24 AM »
spritemap.SetPosition(0f, image.Height);
Thank you, bro. That's exactly that I need.
5
Help / Re: Multiple graphics in one Entity - location question
« Last post by badman on February 21, 2017, 07:58:37 AM »
spritemap.SetPosition(0f, image.Height);
6
Help / Multiple graphics in one Entity - location question
« Last post by bacek on February 20, 2017, 07:12:52 AM »
Hello.
At first, thank you for simple and fast library.
I've got a question about multiple graphics. I have a spaceship sprite and a flame animation. They are always together, so I decide to add both graphics into one entity.
How can I change the location of flame? AddGraphics have no x,y arguments. I could use 2 entities, but in that case I'll need to change coordinates of flame manually when ship moves.
Here's constructor of my object
Code: [Select]

public Player() : base(Game.Instance.HalfWidth, Game.Instance.HalfHeight)
        {
            var img = new Image("Resources/player.png");
            img.CenterOrigin();
            AddGraphics(img);

            Spritemap<Animation> spritemap;
            spritemap = new Spritemap<Animation>("Resources/flame.png", 32, 64);
            spritemap.Add(0, "0,1,2,3,4,5,6,7", 10);
            spritemap.CenterOrigin();
            spritemap.Play(Animation.fire, true);
            AddGraphics(spritemap);
        }

What I see and what I need:

Thank you.
7
General / MonoDevelop - Fedora 25 - mono 4.8.0
« Last post by mythcat on February 18, 2017, 10:46:52 AM »
I need help with Fedora 25 linux , mono version 4.8.0 with this source code:
Code: [Select]
using Otter;

namespace otter_001
{
class Player : Entity
{
public Player(float x, float y) : base(x, y)
{
this.AddGraphic(Image.CreateCircle(120, Color.Red));
}
}


class Program
{
static void Main(string[] args)
{
Game game = new Game();
game.Color = Color.White;

Scene scene = new Scene();

Entity entity1 = new Player(0,0);
scene.Add(entity1);

game.Start(scene);
}
}
}
using MonoDevelop with Otter package
the result is this:
Code: [Select]
Debug]$ mono otter_001.exe

Unhandled Exception:
System.DllNotFoundException: csfml-graphics-2
  at (wrapper managed-to-native) SFML.Graphics.VertexArray:sfVertexArray_create ()
  at SFML.Graphics.VertexArray..ctor (SFML.Graphics.PrimitiveType type) [0x00000] in <4627602695ae459198965b45eda5cf65>:0
  at Otter.Graphic..ctor () [0x00000] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Image..ctor () [0x00000] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Surface..ctor (System.Int32 width, System.Int32 height, Otter.Color color) [0x0001d] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Surface..ctor (System.Int32 width, System.Int32 height) [0x00008] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Game..ctor (System.String title, System.Int32 width, System.Int32 height, System.Int32 targetFramerate, System.Boolean fullscreen) [0x0030e] in <671bea10edbe4cdca82eebf0945869ac>:0
  at otter_001.Program.Main (System.String[] args) [0x00001] in <30890a970f3947e19de2283312e9da8c>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: csfml-graphics-2
  at (wrapper managed-to-native) SFML.Graphics.VertexArray:sfVertexArray_create ()
  at SFML.Graphics.VertexArray..ctor (SFML.Graphics.PrimitiveType type) [0x00000] in <4627602695ae459198965b45eda5cf65>:0
  at Otter.Graphic..ctor () [0x00000] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Image..ctor () [0x00000] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Surface..ctor (System.Int32 width, System.Int32 height, Otter.Color color) [0x0001d] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Surface..ctor (System.Int32 width, System.Int32 height) [0x00008] in <671bea10edbe4cdca82eebf0945869ac>:0
  at Otter.Game..ctor (System.String title, System.Int32 width, System.Int32 height, System.Int32 targetFramerate, System.Boolean fullscreen) [0x0030e] in <671bea10edbe4cdca82eebf0945869ac>:0
  at otter_001.Program.Main (System.String[] args) [0x00001] in <30890a970f3947e19de2283312e9da8c>:0 
8
General / Re: Physics engine ?
« Last post by travismix1980 on January 29, 2017, 04:01:25 PM »
This may work for a physics system.  https://github.com/netonjm/ChipmunkSharp box2d also has c# bindings.
9
General / Saving and Loading
« Last post by travismix1980 on January 29, 2017, 03:59:20 PM »
So I was looking around and I am really interested in using Otter for my next project.  It has come down to Otter or Monogame and I must say that I really like the examples that I am seeing however I couldn't find any information on saving and loading game data.  Does anyone know if this has been covered for Otter and I am just not seeing it or if not can we get a tutorial on how to do that?

Thanks
10
General / Re: A level editor that's not garbage?
« Last post by Commanderstitch on December 29, 2016, 07:35:57 PM »
I've had no problems with multiple layers in tiledsharp. :-) works great with tiled and is fairly pretty fast. :-)
Pages: [1] 2 3 ... 10