Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Usernoob

Pages: 1
1
Ask a Question / html5 cant use camera blocks ?
« on: August 23, 2019, 02:47:03 pm »
So... im trying/testing html5 in stencyl, i make a scene, a actor, actor can move, all ok.

Then i use the block "move camara center to self" and nothing works, actor dont move, the sprite is frozen and the camera is not center in the actor. ¿?¿?

I am a noob in html5, maybe this system dont suppot camera views ?

PD: scene size is huge (16000 x 16000 ) and if i try the same in flash (browser) it work perfect

2
Hi, it's me, the one who never end its projects. Now i have the idea/challenge of create a pathfinder algorithm like the A* but, because im  retard i like challenges i will try to make only whit stencyl blocks. Ah, in real time, not  in steps

It is possible ?

Im tryin creatin a "clever tiles" but it consume so munch memory.

Each tile every 0.05 seconds set a atribute to 9999, if the player is too close to one tile the tile set this atribute to 1

then if the tile is not an obstacle the tile check if the nearest tiles have a movecost (the atribute) smaller than his movecost, if is smaller then change her own atribute to the smaller +1

So i have in each tile the number of "steps" to the  player

Enemyes instead going to the player check the nearest tiles and go to the smaller atribute tile.

But is so slow...

I know Stencyl have extensions whit the A* algorithm and IA, but i like to know how is made.


3
Ask a Question / 1 light ok, 4 light = game crash
« on: November 10, 2018, 12:01:38 pm »
Hi, i'm the noob who sometimes try to make new thing in stencyl.

Now i'm trying to make light effect with image API. I create a black wall and clear some circles for the light.

It works for one light, but whit 2, 3 or 4 the game go more and more slow.

In this game you have a light in the mouse, and can create more static light with click:

http://www.stencyl.com/game/play/39632

here is the code, what i'm doing wrong ?


4
Ask a Question / Many actors but is a RTS
« on: September 09, 2018, 02:10:17 pm »
Hi, long time without trying to making games.

Im trying to make a "Real Time Strategy" game, but i have a (maybe) the typical problem.

When the game have 100 or more actors the FPS go slow.

I change all the "updating" events to "do every 0.05 seconds" that help, but
is not sufficient.

All is simple graphics and only have a draw event thats draw the green bar of life (and other draw event for the minimap )

only 1 room/scene at moment, 16.000 x 8000 pixels

The actors are all always active ,because i need the enemy's workers farming and soldiers patrols out of the screen.
Maybe is for the minimap that create points of green or red for each enemy or ally unit.

Units (only allies at the moment) have each one a weapon that its "fixed" in the unit, can be this the cause? (is the only updating event)

IIt's hard imagine how to create a game like "starcraft" or "command and conquer" whit maybe 100, 200 or 500 actors.

Anyway, it's only a hobby.

5
Ask a Question / Why bounce? (collision problem)
« on: October 23, 2017, 12:27:19 pm »
Hello, I've come to tell you about the mysterious bouncing collision !

I have an actor that rotates following the angle that takes the player, the player can shoot bullets that give him cause (damage - armor)
(bullets also spin their sprite in the direction you aim)

the bullets should do him harm and be destroyed in the process, but surprise! if shoot at a certain angle (behind) they bounce or even stand still without being destroyed or causing damage in the process.

It is as if it detects the collision but does not apply what it is asked to do after that.

I'm using simple physics and square boxes of collision, no circles or polygons.

Is it possible that the collision box rotates and does not work properly?

6
Ask a Question / Getting attributes from other actors (dead link)
« on: September 08, 2017, 10:43:27 am »
Hello wise mens (and wise girls), i have another problem. i have a enemies with a variable attribute, that enemies shoot balls, the balls collide whit the player and another attribute of the player (life or armor) decrease as the attribute of the enemy that shoot the ball.

In resume, i need take the value of attribute of another actor.

I search in the forum and in google, i find this:

http://community.stencyl.com/index.php?topic=14474.0

Buuut the link are dead. And i dont find that in the blog.

7
Hi, im a noob programer  testing Stencyl.

Im making  a RPG game whit a "Stats" each stat is a game attribute and you can invert points to up the stats.

The problem is when the scene switch the stats will reset. And i need conserv the value of the atributes from one scene to other scene.

¿Stencyl have a option to make an actor or scene "persistent"  like the game maker option?

Sorry for the inconvenience.

Pages: 1