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 - saadjumani

Pages: 1 2
1
Ask a Question / How to implement Parent-Child system in objects?
« on: July 21, 2015, 03:33:53 am »
Hello all,

I am working on a game that may require an actor to be attached with another actor (it is like a tank with chasis and turret). I need the turret to follow the tank wherever it goes, but with additional controls for rotating and firing the turret. I have done this in other game development frameworks but not sure how to implement this in stencyl.

Help would be appreciated,
thanks.

2
Ask a Question / Asteroid movement doesn't work in simple physics engine.
« on: January 07, 2015, 03:15:21 am »

Hello, i am working on a flash/android game, in which most of the actors have little to no collision (they are just sensors) and those who do have collisions have very basic movements.

Only the player actor will have significant movements/transformations which require asteroid movement behavior. So naturally I thought simple physics engine is the way to go here, as box-2D may consume more resource and slow down the game.

The problem is that asteroid movement behavior doesn't work properly with simple physics. The actor rotates, but doesn't go ahead when I press the forward button ( I think it has something to do with the "push" command that the behavior contains).

Is there someway to get around this and use simple physics engine or do I really have to use box 2D just for this thing?

would be grateful for your input.

3
Hello everyone.

I need to know is there a difference in ways that stencyl handles collisions in terrain vs the way it handles it in tiles?

The problem is that there are two ways I can make my top-down 2D puzzle/strategy  game levels:

1) The default way for most stencyl games would be to directly create a level within stencyl with tiles.

2) The other way is that I design a level in image editing or illustration software, import it in stencyl as background and add collisions manually through terrain feature.

In first way,  it would take up to 4 layers to just get the background graphics right (the land, water, foliage, green areas etc). In second way. In second way, it would take one layer of background plus another layer of terrain to get everything ready. Plus with the second way, my graphics would be better as photoshop gives me the ease of designing that stencyl can't (not stencyl's fault, its a game authoring tool, not an image editing tool).

I just need to know whether using the second method would have any effect on the performance of the game.  Intended platforms are Flash and Android.

4
Ask a Question / How to import tiles from stencyl into photoshop
« on: September 18, 2014, 11:13:11 am »
I downloaded tiles from stencyl forge that were labelled "public domain". If im not wrong, that means anyone can use and possibly modify them at will. That is what I intend to do, edit them slightly in order to make them fit more into my game.

I need a way to import the entire tileset into photoshop, any idea how to do that? When you download the tiles, which folder are they saved in?

5
Ask a Question / Help needed with Health Bars
« on: August 10, 2014, 04:57:47 am »
Hello everyone, im working on a game and what I basically want is for each actor to have its own health bar displayed on top of the actor itself. But health bar only appears for like 1 second and then disappears again.

I have attached the code I am using for it.

6
Ask a Question / Help needed with explosions
« on: August 08, 2014, 03:51:59 am »
Im trying to make a code where bullet hits the actor, bullet gets killed and explosion occurs on the actor which got hit.

The problem is, when bullet gets killed, the explosion too dies instantly on that frame, instead of completing its animation cycle.
Any idea what am I doing wrong?

7
Ask a Question / water textures?
« on: August 07, 2014, 10:22:55 am »
Hello everyone, does anyone has any idea where can I get good , seamless water tiles for a top down game? preferably animated.

Thanks in advance.

8
Ask a Question / What image formats are the best for stencyl?
« on: August 06, 2014, 08:17:50 am »
Hello everyone, I was wondering what image formats are the best for stencyl. By default I was going with PNGs for transparent images(such as actors) and JPEG for background. But im interested in knowing if there are other, better options available for it. My last game didn't turn out to be very smooth despite being very simple, and I still haven't been able to know what caused it lag, so im wondering what if it had something to do with the image formats I was using.

I have the characters as 3D models, which I will render from top(its a top down game) and import them in my game.

cheers.

9
Ask a Question / Region not following actor as it should.
« on: July 23, 2014, 11:32:18 am »
Working on a game where I have created a region and an actor, and made region follow actor. It is following actor but its kinda misplaced. What I want is the center of the region to be the same as center of the actor, but instead the center of the region region is somehow bound to the down left of actor.

Attaching screenshits of what I am getting and what I want for your convenience.

10
Yeah you pretty much go it. Basically I am coding an actor, when the enemy actor enters a region, a behavior gets enabled for my actor, when it leaves, the behavior gets disabled. I want to ask that when the actor gets killed, would stencyl consider it as if the actor has exited the region or will the behavior code continue to run but I won't know it since there is no actor in the region?

Obviously I am trying to get stencyl to run minimum lines of codes as possible because my last game ended up as a disaster due to horrible coding.

11
Im trying to make AI for a game, and what I want is that actor starts firing IF actor comes within a certain distance from the enemy.

What I want is a script to make the actor check if actors of a particular group are within 100 pixel radius of self, then point self towards it and fire. I can figure the later part out but I don't know how to implement the range thing. Any help would be appreciated. Thanks in advance.

12
Ask a Question / Is it a bad idea to have too many game attributes?
« on: July 22, 2014, 05:12:24 am »
Does having a lot of game attributes mean that game will run slow or make it laggy?

Currently I have about 10 Game attributes(may add a couple of more) but most of them will only be accessed in start of the levels when player will be placing his troops on ground. Basically I have 8 different kinds of troops in my game, when player chooses to add anyone of them, the number of troops deployed changes. Once all troops are placed, the game starts and the attributes are left idle.

Will this slow down my game?

13
Ask a Question / Need help with Tower Defense script
« on: July 21, 2014, 05:59:18 am »
Im trying to learn how to create something like a Tower Defense game. I want to have the towers judge the distance between themselves and objects of a particular group, once they are inside the particular distance towers should activate the behavior that points them towards the enemy and start firing(I have the behavior almost worked out, can't figure out how to make it operational only under certain distance).

I tried working with regions, but the problem is that player can change the position of tower so region will be left behind right?

14
Ask a Question / Move actor to the the point of mouse-click
« on: July 05, 2014, 03:01:52 pm »
Hi guys, im not very well versed at Stencyl coding. So here is my question. The game involves a space ship, what I want is that when a point in screen is selected, the spaceship turns itself towards the coordinates of mouse and then moves at a certain speed towards that point and then stops when it reaches that point.

I got it to turn towards the point of impact and by using "simulate keys" coding blocks and asteroid movement function and I roughly got what I wanted, but it took its toll on frame rate. So I want to know what is the better way to go about it? I get how to get the ship to point towards the coordinates of mouse-click, but what I really want is the ship to move from its original location in direction it is facing and stop when it reaches that coordinate where mouse was clicked.

Thanks in advance.

15
Ask a Question / Object not moving towards the coordinates I enter
« on: February 08, 2014, 07:30:46 pm »
Here is how game goes. I place a car 100,800 and another at  400,650. The second one can move at player's will and all. The first one tries to ram it and damage it.

Therefore the aproach I find for it is to add an attribute "target car" to second car, and in events I tell the code to push car in the direction of "target car" with force 40. It pushes the car at 0 degrees instead of 30/-30 which should have been.

I tried simplifying the problems by adding DIRECT coordinates for the first car to move to, but the car still moves somewhere else. Kindly help me out with this.

Thanks in advance.

Pages: 1 2