Jump to content


Spot On J2K

Member Since 04 Aug 2007
Offline Last Active Today, 08:02 AM

Topics I've Started

Collision with more than one object

04 March 2012 - 06:43 AM

Hi. In the top-down game I'm working on, there will be several solid wall masks of varying sizes that will stop the player if they run into them. Right now I have this code in the step event for the player:

var i,move_check,h_spd,v_spd; 
h_spd=0; 
v_spd=0; 
if keyboard_check(vk_up) v_spd -= 5; 
if keyboard_check(vk_down) v_spd += 5; 
if keyboard_check(vk_right) h_spd += 5; 
if keyboard_check(vk_left) h_spd -= 5; 
for (i = abs(h_spd); i > 0; i -= 1;) 
        { 
        move_check = sign(h_spd) * i; 
        if !place_meeting(x + move_check, y, obj_Wall) {x += move_check; break;} 
        if !place_meeting(x + move_check, y-i, obj_Wall) y -= i/2; 
        if !place_meeting(x + move_check, y+i, obj_Wall) y += i/2;   
        } 
for (i = abs(v_spd); i > 0; i -= 1;) 
        { 
        move_check = sign(v_spd) * i; 
        if !place_meeting(x, y + move_check, obj_Wall) {y += move_check; break;} 
        if !place_meeting(x-i, y + move_check, obj_Wall) x -= i/2; 
        if !place_meeting(x+i, y + move_check, obj_Wall) x += i/2;
        }

This works great when colliding with the object obj_Wall, but how do I add other objects to collide with? If I add them directly to the end of the current code it messes everything up, making the player go too fast and not stop when colliding with anything.

I greatly appreciate anyone who can help me. I'm using GM 8.0 by the way :smile:

Create Your Own Adventure

20 October 2011 - 05:34 PM

Hi! Have you ever read any of the old Choose Your Own Adventure books? If you haven't, you need to. Anywho, I have and they inspired me to make this. Create Your Own Adventure lets you customize your own multiple-path text adventure however you see fit! You can customize:

-Title
-Background color
-Fonts for both uninteractive and interactive parts of stories
-Music that plays during adventure

Take a gander at what the game looks like:

Posted Image
Creating a new adventure

Posted Image
A completed adventure being played (this is the pre-made adventure that comes with the game)

The best part about it is you can have access to an infinite amount of stories if you have friends that are willing to make and share them with you! when you're done making an adventure, it will ask you to save the completed adventure. After you do so, you can give a copy of the save file to people you know and they can load it and play it (without seeing the source pages) directly from the main menu! If you're into branching text adventures, you can't get much better than this!

If you're hungry for a good adventure, download here:

http://sandbox.yoyog...r-own-adventure

I hope you will try it and enjoy it!


!!UPDATE!!

If you remember the 90's Nick show All That and have fond memories of Baggin' Saggin' Barry, or if you're just hungry for a decent-sized choose your own adventure game, you'll be pleased to know that you can download the save file for the adventure Just Baggin' at http://crazyvillevariety.com/various/. Just extract the file and put it in the same directory as CYOA, then type the name of the file after clicking "Play Custom Adventure"

2-dimensional

29 June 2009 - 06:17 PM

2-Dimensional

Type: Puzzle/Platform
Players: 1
GM Version: 5.3A

NEW! Gameplay video: http://www.youtube.c...h?v=6rIVKJNyxPE

Use both sides of the screen in a revolutionary new concept where you can always see where you need to go, but not always on the same side of the screen! You take control of Dr. Nucleus Poitras, infamous mad scientist. After he discovers a strange new dimension, he must find his way through 30 levels where you must help him reach his escape ship!

Controls: Arrows to move, up arrow to jump

Screens:

Title screen
Posted Image

One of the many levels:
Posted Image

Story screen:
Posted Image

Play/download:

http://www.yoyogames...ames/show/84295

Feel free to leave any comments or criticism and thanks much for viewing this thread!

Medium Rare Square

30 April 2009 - 07:28 PM

Posted Image
Hello and welcome to the official Medium Rare Square thread! Now here's our host!

Host: Hi! Glad you're interested in this game! If you want to skip all this mumbo jumbo and see the instructions and download information, just scroll down! Now I bring to you the special guest star of Medium Rare Square: you know him, you love him, it's Gary Busey!

Gary: Hey how ya doin

Host: Hi Gary! Tell us a little bit about your role in the making of this game.

Gary: The days were long and the pay was little. I recorded over 1300 lines of dialogue for the game, none of which actually made it in. But I'll have to say it was definitely worth it all in the end.

Host: Fantastic! You see, loyal viewers, Medium Rare Square is no ordinary board game! On your turn, when the spinner is spun and stopped, you move the approriate amount of spaces the spinner says. If the space you land on tells you to draw cards, you then pick from the amount of cards it suggests and then you have to do what the card says!

Gary: Sounds tricky!

Host: You bet! Every card involves the player getting hurt (usually very badly) and that will require either health insurance or health! If you don't have enough health insurance, it takes it from your health. What do you think it does when you have no more health?

Gary: Gives you great prizes?

Host: No way Jose! You die! But don't worry, death is never permanent in this game, you can simply challenge the opponent again! Here's one of the cards:

Posted Image

Gary: Ooh that right there's gotta hurt! Anything else I should know?

Host: Weren't you in the game?

Gary: Well yeah but..I haven't gotten around to playing it you see..

Host: Oooh ok! Well, now that you mention it, there is something else! All the cards require that you lose a certain amount of turns. The lost turns accumulate above your character's head. For each turn that you've lost, you'll gain money used to buy health insurance when the ambulance decides to come by!

Gary: Wow!

Host: Yep! Now let's get this shpill over with and give the controls and download links!

Gary: Alrighty

Posted Image

Controls

S = Spin
Spacebar = Stop spinner
Left click = Select menu option/Pick a card
Right click = Do a card's action
F = Force opponent to move
Q = Quit current game and go back to home menu

Host: With each 2 games you win, your rank will increase! See how high of a rank you can achieve! Also, with each territory you beat, you'll get a snazzy trophy in your trophy room! As you beat people, you will earn new characters and pieces! This game is single player only.

So come get it!

Yoyo Games: http://www.yoyogames...ames/show/76110

Direct Download: http://www.fatandang...mraresquare.zip

Flaming K

22 March 2009 - 09:02 PM

General info:
Genre: Platform
Download Size: 10.7MB
Game File Type: Stand-Alone Executable
Resolution: No Change, 640x480 window
Made in: GM5.3A

Description:
Someone or something really really bad has come to your quiet little town! What was once a nice place filled with parks and K-Marts is now reduced to rubble and K-Marts..

You, Flaming K, the mysterious female (the mask makes you mysterious) sets out to find out what's the haps!

Features driving, running, jumping, collecting, squashing, fishing, flying, sliding, handstanding, and maybe even eating!

Screenshots:

Title
Posted Image

Driving to destination!
Posted Image

Creepy forest!
Posted Image

Jumping through the clouds!
http://fatandangry.com/fkscreen4.jpg

Download links:
Yoyogames: http://www.yoyogames...ames/show/74036

Direct download: http://fatandangry.c...es/FlamingK.zip