Search found 18 matches

by metalbass_92
Mon Feb 04, 2013 2:33 pm
Forum: R.U.B.E discussion
Topic: Too many custom properties
Replies: 5
Views: 12407

Re: Too many custom properties

Hi, first of all let me apologize for not answering on so many days, my father died and i'm not still focused 100% on work. The workarounds you proposed look like good ideas, but I still think that RUBE needs a category system for bodies : P. In any case I'd prefer you to focus on instantiable objec...
by metalbass_92
Mon Jan 21, 2013 7:45 pm
Forum: R.U.B.E discussion
Topic: Too many custom properties
Replies: 5
Views: 12407

Re: Too many custom properties

You understood what I've said and added a great ideas :D Wouldn't bitflags limit a lot how many categories can the user have? (We're developing a game at the office with another tool using more than 40 categories, big mess :lol: ) It could work like an enum of different categories, I'd love that a b...
by metalbass_92
Mon Jan 21, 2013 10:59 am
Forum: R.U.B.E discussion
Topic: Too many custom properties
Replies: 5
Views: 12407

Too many custom properties

Hi, as every body shares custom properties in RUBE and i usually place them on bodies (using them as triggers) the properties menu gets pretty messy :lol: Is there any way that a body only shows the properties it's using? It would be great if we could define some type of custom classes that group pr...
by metalbass_92
Thu Jan 17, 2013 6:14 pm
Forum: Box2D tutorial discussion
Topic: Directional sensors
Replies: 7
Views: 16686

Re: Directional sensors

A way to avoid the big if/else statements is to use polymorphism into a list (std::list or a std::vector) of pointers that can receive contact events, this way you only need to define a base class which has virtual methods that will be overridden by every class that needs to know of a contact. You'l...
by metalbass_92
Sat Jan 12, 2013 11:58 am
Forum: R.U.B.E discussion
Topic: Size of body
Replies: 7
Views: 19088

Re: Size of body

What we do at work for handling multiple resolutions is to use different pixel to meter ratios, so you need to use methods in code to convert between pixels and meters and the other way.

32 pixels per meter seams a pretty standard value if you don't know what value to use ;)
by metalbass_92
Sat Jan 12, 2013 11:55 am
Forum: Feature requests
Topic: My requests
Replies: 4
Views: 14298

Re: My requests

I also think this feature is important but i've put all my vote into the spritesheet feature as we cannot start working with rube in the office until it supports spritesheets and custom properties. Maybe others have other similar reasons, where they urgently need some feature and they can live witho...
by metalbass_92
Sat Jan 12, 2013 11:49 am
Forum: Box2D tutorial discussion
Topic: Directional sensors
Replies: 7
Views: 16686

Re: Directional sensors

To solve all the problems you can have with enemies not being deleted (maybe they are at the vector multiple times?) i would use a std::set : http://cplusplus.com/reference/set/set/ . A set cannot have repetitions and has logaritmic lookup time (vs vector linear lookup time) That may not solve all y...
by metalbass_92
Tue Jan 01, 2013 10:54 pm
Forum: R.U.B.E discussion
Topic: javascript json export for indie games
Replies: 6
Views: 16725

Re: javascript json export for indie games

Haven't seen anything more cross platform than C++ by now: works on PS3, Xbox360, Wii, iPhone, Android, Windows, Mac, Linux... everything! (except browsers ;) ) Sure you need to compile the code, but it's also faster because of it. About memory management... a garbage collector is something you don'...
by metalbass_92
Tue Jan 01, 2013 10:45 pm
Forum: Feature requests
Topic: Instantiable object as sub-scene
Replies: 2
Views: 10046

Re: Instantiable object as sub-scene

I was talking about redundancy because i've been using a cocos2d with box2d tool that uses definitions of bodies from a file and then it includes those definitions as a copy everywhere they are used in the level. I think it's the easier way to implement, so i was (kinda) offering a better way than t...
by metalbass_92
Tue Jan 01, 2013 10:38 pm
Forum: R.U.B.E discussion
Topic: Get body by name
Replies: 12
Views: 35185

Re: Get body by name

@Oscar: There are several reasons for a method beign unable to use a class intance's fields, the most current are that the fields that you try to use doesn't exist (this case) and that the method is not from the class (the one i was talking about). Take a look at the cpp file you uploaded, line 528:...