Forums

Recent Posts by erzz

Subscribe to Recent Posts by erzz 22 posts found

Jun 9, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Help

In my new platform game, in the left and right keys for the main character i
have the following code:
if position_meeting(x,y+4,collision) = false then sprite_index= airbone_left
else if place_free(x-4,y) then sprite_index=run_left and x-4
else if place_free(x-4,y-8) then {{x-=4} {y-=8} {move_contact_all(270,100)}}
where:
collision is the name of the invisible solid object
the last line is the code that is written in the tutorial for the player to be
able to move up ramps.
As you may see, first the game checks wether the character is airbone (if there
is collision just below it). If it is, the sprite is changed to an airbone
sprite. Else, the computer checks wether the place just left is collision free
to be able to move there.
What happens? I don't even have to press the left key and the character is
already in its airbone sprite, floating above the collision object. Given that
the collision mask is the sprite for the standing object, taller than the
airbone sprite, the object floats. Naturally, it doesn't move when i press the
left or right key.
I have run the game in debugger mode and checked wether the expression of
checking the collision was true, so maybe there was no collision taking place
after all, but yes, there was a collision taking place.
Where is the error?

 

May 20, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Making objects chase other objects

Execute code...
Maybe you need to read a tutorial on GML

 

May 20, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Try my game!

Please! Someone play it!

 

May 19, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Try my game!

Hey everybody! My second game's here, in a beta version still, but it already
has 10 levels and you will enjoy it very much.
It is a puzzle/platform game in which you draw lines with the mouse and then
move the character towards the flag using the arrow keys. It is very
entertaining. Please try it and review. Here is the link:
http://www.yoyogames.com/games/show/36450
thanks!

 

May 19, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Making objects chase other objects

Is it? wasnt the question about an object following behind another one?

 

May 19, 2008

Nopicture_small erzz 22 posts

Topic: Unofficial Help and Q&A / Difference

What is the difference between the beta version of a game and an incomplete
game?

 

May 18, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Multiple passwords

You have helped me already, redchu. Your name already appears in the credits of
my game :-)

 

May 17, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Making objects chase other objects

No, no no. The object will move to the exact same spot the ball is in,you should
first check the direction the follower object is in relation to the ball with
point_direction(follower.x,follower.y,obj_ball.x,obj_ball.y). you should make
the object move towards point obj_ball.x+16, obj_ball.y if it is from 136
degrees to 224 degrees, etc.

 

May 16, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Multiple passwords

Hi. My game has multiple short levels and i would like for the player to be able
to write the name of the desired room and be sent there directly.
I am making a menu and will put the password option there so i would like to
know if this is possible.
Thanks
EDIT: found the answer already on a previous post by Slammin Sam. Thank you Sam!

 

May 14, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Animated sprite problem

Yep, that did it. Thank you very much.

 

May 14, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / Animated sprite problem

Hi. I am making a platform game following the tutorial. The moving actions are
the same, the only difference is that the sprite of the character moving left
has various subimages, so it seems that it is running, but while playtesting the
character doesnt run, the only subimage displayed is the first one, so my
character doesnt run. Do you know why?

 

Jan 30, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / No collision

I have tried it both ways, it just doesn't work.

 

Jan 30, 2008

Nopicture_small erzz 22 posts

Topic: General Chat / No collision

I have a solid invisible object that when the character collides with it the
character the movement stops (start moving in direction [center square]).
However, this doesn't happen. Why?

 

Dec 21, 2007

Nopicture_small erzz 22 posts

Topic: General Chat / Compile error

Hey, thanks! That did it! I don't understand a thing about that, but it worked.
Thanks a lot.
Also, which would be the code for left, down, and up scrolling? If you would be
so kind to type it up also... I would be forever in your debt.

 

Dec 20, 2007

Nopicture_small erzz 22 posts

Topic: General Chat / Compile error

The room won't be small. The room's size will be huge, like any zelda game, I
just gave it taht size to try it out. The suggestion of using different views is
discarded.

 

Dec 19, 2007

Nopicture_small erzz 22 posts

Topic: General Chat / Compile error

I don't want the object to follow! It is a zelda game, so the character
colliding with "right scroll" should just make the screen move, but that doesn't
happen.

 

Dec 18, 2007

Nopicture_small erzz 22 posts

Topic: General Chat / Compile error

But I don't get what is the problem! Modifying the variable should just make the
screen scroll, I don't know what is happenning. Any ideas?

 

Dec 17, 2007

Nopicture_small erzz 22 posts

Topic: General Chat / Compile error

Ok, that solved the compile error problem, but when the character collides with
"right scroll", nothing happens.

 

Dec 16, 2007

Nopicture_small erzz 22 posts

Topic: General Chat / Compile error

Hi. I am making an adventure game and I have a problem.
Suppose the room measures 416 in length and 208 in height, The view's size is
208 X 208. There is an object in the right of the screen that when collides with
the main character, the variable view_xview(0) is set to relative 208. Is it
clear enough?
When I run it on debugger mode, I watch this variable and in value it says
COMPILE ERRROR. Any ideas why this is happening?

 

Dec 13, 2007

Nopicture_small erzz 22 posts

Topic: Unofficial Help and Q&A / make a menu

Oh ok thank you.

 

Dec 6, 2007

Nopicture_small erzz 22 posts

Topic: Unofficial Help and Q&A / make a menu

But if, lets say, they were sooting at you, they wouldn't stop shooting, would
they?

 

Nov 28, 2007

Nopicture_small erzz 22 posts

Topic: General Chat / Try my game!

Hi guys I'm mew here and I made a block-breaker game. It is a beta, so noone can
see it. Please click on my name to play and rate it! Please!