Jump to content


Pixel8ed72

Member Since 11 Dec 2011
Offline Last Active Private

Topics I've Started

Game Freezes at a certain "y"? *SOLVED*

22 December 2012 - 05:25 AM

Hello!
:)

My game has been running smoothly as of late, but today, I decided to add a feature I'll include in some levels.
I added it, tested it, and it worked.
But I noticed that whenever my player goes above a certain y level in the game, it'll freezes, and I have to exit it, and re-load it.

The feature I added is a wave distortion, I.E, the screen distorts by moving side to side very slowly, giving a sort of "dreamy" feel.

I got the code from this topic.
I removed the Alarm[0] event, as I want the effect to be continuous, and I also changed the "amplitude", "frequency" and "precision" values to 5, and set the "_sp" to 340(so it's not as powerful, and slower).

The exact y level, I'm not sure of, but the player starts at the bottom of the level, heads to the left, and has to wall jump, then proceed to the right to reach the exit.
The final block of the wall jump, when it reaches it's y level, is where the game freezes.k


Thanks for your time, and any help would be greatly appreciated!




EDIT: SOLVED!

I made the wave effect fade out when the player hits the portal, and when the effect is gone, the surface destroys and the wormhole alarm is triggered.
:)/>/>

Faster Generation?

28 November 2012 - 11:20 PM

Hello.


I've got world generation working fine and all, but the method I use creates a few hundred instances of the block object, which is running a check to see which sprite it should use, depending on if there's another block above it.
Due to this, when the room is created, there is around 1-4 minutes when the game is frozen, and it's an issue I don't want in the final version.

I know you can use ds_grids for this kind of thing, but I don't know how.
:3

I'm wondering if anyone knows of a better way to generate the island.
(it's just one, huge island the player has to protect from onslaughts of enemies during day and night time)

This my current method:

In the room creation code, I have a script executing:
IslandGenerate(2,room_width/8-2,20,2);

IslandGenerate runs the following code:

var xmin,xmax,yy,slope;
xmin=argument0;
xmax=argument1;
yy=argument2;
slope=argument3;
IslandAddTerrain(xmin,xmax,yy);
if(0==irandom(5)){
    var breakpoint;
    breakpoint=irandom_range(xmin,xmax);
    yy+=1;
    IslandGenerate(xmin,breakpoint,yy,slope);
    IslandGenerate(breakpoint,xmax,yy,slope);
};
xmin+=irandom(slope);
xmax-=irandom(slope);
if(xmin>=xmax)return 0;
yy+=1;
return IslandGenerate(xmin,xmax,yy,slope);


IslandAddTerrain has the following:
var x1,x2,yy,blocksize,n,i;
x1=argument0;
x2=argument1;
yy=argument2;
blocksize=8;
for(n=x1;n<=x2;n+=1){
    i=instance_create(n*blocksize,yy*blocksize-96,objBlock);
};
return 0;


So, as you can see, it's not the best method.
:/

Any ideas?

Cheers!

Blender/Python - Errors in my code?

14 October 2012 - 06:05 AM

Hello all!

I'm learning Python, and I've been trying to make an Audio Visualizer(with some help from a tutorial. ^_^; ) in Blender.

But I get an error every time I run the script(and I assume I'd get a few more if I solved this one)
:/

I was hoping someone here might be able to see the problem, because I'm confuzzled(so use to GML. *sigh*)

Code:
Spoiler


I get the following error:

def spiral(X, Y)
^
SyntaxError: invalid syntax
location:<unkown location>:-1
Python script fail, look in the console for now...

Anybody got an idea?

Thanks!

Audio Reaction

02 October 2012 - 12:00 AM

Hello.

As I said in the topic description, I don't think this would really be possible(unless there is a .dll that allows it) but I thought I'd ask anyway.

In my game, the environment reacts to music, via BPM.
But I was trying to get the title logo to 'jitter' every time there was a spike in the audio, via an alarm.

I was wondering if there's any way for GM to read the audio files, and return the spikes in the Audio's velocity, and when one is returned, perform an event.

It's a very, very slim chance, but there's no harm in asking.
:)

Pixel Art Character -Request-

30 September 2012 - 09:27 AM

Hello!


I'm hoping someone can help me out with this.
:)

I'm making a game called Bodies of Battle.
It's an Online Platformer Shooter.


I'd just like a basic character which can be used, and the player can customize it/make their own player.
:)

Here's what I would like:

The game is based on players entering worlds, either presets or custom, where weapons and obstacles spawn.
It's a PVP game.
:)

I want a basic character;
Fairly flat, brown hair, a smiling face, green t-shirt, a belt, jeans, and shoes.
:)

I would like him animated, if at all possible.
Standing, running, a jumping and falling sprite, and a hurt sprite.
:)

The size doesn't particularly matter, but if the characters width could be smaller than 32, and height with-in 64 it'd be appreciated.


I cannot pay you, unfortunately, but I will give you full credit, a splash screen at the games start, and a link to your website/art page/blog as you choose.
:)


Any help is appreciated.
:)


Thank you for your time,
     -Pixel8ed72