Search found 76 matches

by scissors61
Wed Mar 14, 2018 3:02 pm
Forum: Games and Creations
Topic: Tallix (prototype). An original arcade/puzzle maze like kind of game.
Replies: 2
Views: 644

Re: Tallix (prototype). An original arcade/puzzle maze like kind of game.

No, I still haven't solved the randomness problem. I thought of publishing the prototype thanks to that problem and how hard would it be to take the game from prototype to complete game without any feedback. If I get further in solving it I'll update the thread.. A friend tells me that he likes that...
by scissors61
Tue Mar 13, 2018 10:43 pm
Forum: Games and Creations
Topic: Tallix (prototype). An original arcade/puzzle maze like kind of game.
Replies: 2
Views: 644

Tallix (prototype). An original arcade/puzzle maze like kind of game.

Hi, this is a rough prototype of the game I've been working on. Screenshot_20180313_193048.png The game consists in changing the angle of the tallix shapes to guide a ball to get all the T-A-L-L-I-X keys, which are colored in pink. You can change the gravity direction by touching the upper or lower ...
by scissors61
Tue Mar 06, 2018 9:47 pm
Forum: Support and Development
Topic: Same randomness between instances of the same class
Replies: 12
Views: 1870

Re: Same randomness between instances of the same class

The colon syntax implicitly adds a first parameter called self to the function definition in question, and when you call such a function, if that happens with the colon syntax as well, (iirc) the last table that contains the function itself will be passed into it as "self"; Thanks, now I understand...
by scissors61
Fri Mar 02, 2018 10:38 pm
Forum: Support and Development
Topic: Same randomness between instances of the same class
Replies: 12
Views: 1870

Re: Same randomness between instances of the same class

The problem is that you're not creating two different objects, you're creating just one. I made a quick fix like this: function RandomEntity:new(seed) self = {} ... Your solution fixes the problem of the example but in my code still doesn't work because I'm using a personalized mix of OOP/ECS, but ...
by scissors61
Wed Feb 28, 2018 10:47 pm
Forum: Support and Development
Topic: Same randomness between instances of the same class
Replies: 12
Views: 1870

Re: Same randomness between instances of the same class

What I'm trying to do with the anonymous function you mentioned is to randomly change the direction of the object. But when I create more than two objects with Timer's tween the randomness between them is the same. In other words self.direction = self.randomness:random(1, 8) is being the same betwee...
by scissors61
Wed Feb 28, 2018 8:43 pm
Forum: Support and Development
Topic: Same randomness between instances of the same class
Replies: 12
Views: 1870

Re: Same randomness between instances of the same class

You gonna need something like tesla coil to produce noise from which you can pick out truly random values. Great, just more steps to attain my goals. But not seeding made the two instances generate the same number, and the same pattern of numbers every time I start the love application. Maybe I mis...
by scissors61
Thu Feb 22, 2018 5:12 pm
Forum: Support and Development
Topic: Same randomness between instances of the same class
Replies: 12
Views: 1870

Same randomness between instances of the same class

Hi 2d lovers. I want to move randomly two identical objects with math.random. the randomness is set by they deciding between 8 possible moves, so I set math.random(1,8) the problem is that for both of this instances the random decisions are the same, so they move the same. I think if I can create a ...
by scissors61
Fri Feb 16, 2018 5:00 pm
Forum: Libraries and Tools
Topic: STALKER-X (Camera library)
Replies: 17
Views: 3256

Re: STALKER-X (Camera library)

Hi, I like how simple it is to use this library for cool things
I have a problem though, I'm using a point n click feature that gets broken when I rotate this camera, the mouse position is not correct in its conversion to the rotated world I think.
Thanks
by scissors61
Wed Mar 08, 2017 12:45 am
Forum: Support and Development
Topic: Is it worth it to make a built in tile editor?
Replies: 16
Views: 3255

Re: Is it worth it to make a built in tile editor?

@Zorg @Jasoco. I can imagine how it works. It looks very easy, definetly going to use it. Thanks. I remember using inkscape to grab the position of some patterns I created with inkscape's grid and align tools. Then I exported them to tiled to then make an object in each figure of the pattern. If I k...
by scissors61
Tue Mar 07, 2017 5:15 pm
Forum: Support and Development
Topic: Is it worth it to make a built in tile editor?
Replies: 16
Views: 3255

Re: Is it worth it to make a built in tile editor?

An alternative that I have seen some people use, which I have not tried myself, is using image files as levels. If your level is 100x100, you use a 100x100 png image, where each pixel represents a tile, and its color codifies the type of tile it represents: green pixels are platforms. Red pixels, s...