Shadow Fawn Games

For discussion of non-Wonderland topics - please read rules!

Moderators: ~xpr'd~, tyteen4a03, Stinky, Emerald141, Qloof234, jdl

User avatar
boywhoflies
Rainbow Spirit Chaser
Posts: 5510
Joined: Thu Jun 26, 2008 3:16 pm

Post by boywhoflies » Wed Nov 09, 2011 3:00 am

I decompiled your game and found a missing comma in it! *shot*
Mr. Robot never dies! :D

Chatroom
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Wed Nov 09, 2011 9:36 pm

Ergh. After some changes, you still can't move despite the fact that you should be able to. whywhywhy
i should change my signature to be rude to people who hate pictures of valves
User avatar
boywhoflies
Rainbow Spirit Chaser
Posts: 5510
Joined: Thu Jun 26, 2008 3:16 pm

Post by boywhoflies » Wed Nov 09, 2011 9:46 pm

-voulenteers to look at your engine-
Mr. Robot never dies! :D

Chatroom
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Wed Nov 09, 2011 10:30 pm

Nobody wrote:Ergh. After some changes, you still can't move despite the fact that you should be able to. whywhywhy
You have the "relative" box checked in the "if there's a solid collision at relative position (0,1)" thingies in the step event, right?
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Wed Nov 09, 2011 11:05 pm

Yes.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Wed Nov 09, 2011 11:06 pm

Can you post the updated pseudo-code?
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Wed Nov 09, 2011 11:15 pm

Code: Select all

 Step Event:
if relative position (0,-4) is collision free for Only solid objects
      set the gravity to 4 in direction 270
else
      set the gravity to 0 in direction 270
if vspeed is larger than 10
      set the vertical speed to 10

Collision Event with object Metal:
set the gravity to 0 in direction 270

Key Press Event for <Left> Key&#58;
if relative position &#40;-1,0&#41; is collision free for Only solid objects
      jump relative to position &#40;-4,0&#41;

Key Press Event for <Right> Key&#58;
if relative position &#40;1,0&#41; is collision free for Only solid objects
      jump relative to position &#40;4,0&#41;
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Wed Nov 09, 2011 11:20 pm

Looking good, except for two problems.

Code: Select all

 Step Event&#58;
if relative position &#40;0,-4&#41; is collision free for Only solid objects
It should be relative position (0,4), not (0,-4). Negative in the y-coordinates is upwards in Game Maker.

Code: Select all

Collision Event with object Metal&#58;
set the gravity to 0 in direction 270
You shouldn't need to use gravity in the collision events. For collisions with walls and stuff, use this:

Code: Select all

move in direction direction at most 16 till a contact with solid objects 
start moving in directions 000010000 &#40;which is the box thingy in the middle&#41; with speed set to 0
I'd be happy to just take the .gmk file for you and fix it, but I can't access my computer right now because I'm backing up all of my stuff (I'm using my mom's computer right now).
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Fri Nov 11, 2011 2:06 am

Since there's barely anything in the GMK as of now I decided to post it freely.
Attachments
Quests GMK.zip
(10.29 KiB) Downloaded 80 times
i should change my signature to be rude to people who hate pictures of valves
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Fri Nov 11, 2011 2:06 am

Since there's barely anything in the GMK as of now I decided to post it freely.
Attachments
Quests GMK.zip
(10.29 KiB) Downloaded 79 times
i should change my signature to be rude to people who hate pictures of valves
User avatar
DEEMAN223344
Rainbow MegaStar
Posts: 3145
Joined: Tue Dec 04, 2007 8:07 pm

Post by DEEMAN223344 » Fri Nov 11, 2011 2:10 am

IMMEDIATE PROBLEM
DON'T use the "Press" events. Use the normal ones.
User avatar
DEEMAN223344
Rainbow MegaStar
Posts: 3145
Joined: Tue Dec 04, 2007 8:07 pm

Post by DEEMAN223344 » Fri Nov 11, 2011 2:17 am

Fixed it. It was a lot of fun.
Attachments
Quests GMK (2).zip
(10.31 KiB) Downloaded 83 times
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Fri Nov 11, 2011 2:19 am

Eh, I still can't move while on the ground...?

EDIT: Oh, you didn't actually fix it. Now that I did... I still can't move. Huh.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Fri Nov 11, 2011 2:26 am

Here's your de-bugified thingy.

If you want him to jump lower or fall faster, experiment with different values of gravity and vertical speed in the step and spacebar events respectively.
Attachments
quests.zip
(10.35 KiB) Downloaded 80 times
User avatar
DEEMAN223344
Rainbow MegaStar
Posts: 3145
Joined: Tue Dec 04, 2007 8:07 pm

Post by DEEMAN223344 » Fri Nov 11, 2011 2:28 am

Nobody wrote:Eh, I still can't move while on the ground...?

EDIT: Oh, you didn't actually fix it. Now that I did... I still can't move. Huh.
Yes I did. I even tested it.
Edit: I actually forgot to save.
Last edited by DEEMAN223344 on Fri Nov 11, 2011 2:29 am, edited 1 time in total.
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Fri Nov 11, 2011 2:29 am

DEEMAN223344 wrote:
Nobody wrote:Eh, I still can't move while on the ground...?

EDIT: Oh, you didn't actually fix it. Now that I did... I still can't move. Huh.
Yes I did. I even tested it.
In that case maybe you uploaded the wrong file.
i should change my signature to be rude to people who hate pictures of valves
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Sat Nov 12, 2011 8:59 pm

DP.

Erm, how do I put the text engine from the ET5 topic in and how do I control what it says? :P
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Sat Nov 12, 2011 9:07 pm

Nobody wrote:Erm, how do I put the text engine from the ET5 topic in
Put all of the code and sprites from the engine into your game.
Nobody wrote:and how do I control what it says?
Edit the code that's in the create event.
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Mon Nov 14, 2011 3:37 am

I don't understand. Why doesn't my headshot work???
i should change my signature to be rude to people who hate pictures of valves
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Sun Nov 20, 2011 4:15 am

oh nevermind my game maker got closed without saving stuff so now the text engine and dialog is gone so i'll have to bring it all back before i fix the problem
Last edited by Nobody on Sun Nov 20, 2011 4:19 am, edited 1 time in total.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Sun Nov 20, 2011 4:16 am

Nobody wrote:I don't understand. Why doesn't my headshot work???
Be more specific. Is the sprite you're using 32x32?
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Sun Nov 20, 2011 4:27 am

Erm, false alarm. The stuff didn't get deleted. Anyways, I changed it to 32x32 from 32x33 and it still doesn't work.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Sun Nov 20, 2011 4:33 am

It's supposed to be 32x32.

And what do you mean by "it doesn't work"?
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Sun Nov 20, 2011 4:58 am

ERROR in
action number 1
of Create Event
for object obj_type:

Error in code at line 32:
img[1] = spr_lorgo
^
at position 2: Unknown variable img or array index out of bounds
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Sun Nov 20, 2011 6:52 am

The first index should be 0, not 1. It should be like this:

str[0] = "BLAH BLAH BLAH"
str[1] = "BLAH BLAH BLAH
str[2] = "BLAH BLAH BLAH*"

img[0] = spr_bob
img[1] = spr_joe
img[2] = spr_alex

name[0] = "Bob"
name[1] = "Joe"
name[2] = "Alex"

Also, make sure you actually have a sprite named "spr_lorgo" (without the quotes).
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Sun Nov 20, 2011 7:00 am

It is like that, only the other character has no headshot.
i should change my signature to be rude to people who hate pictures of valves
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Sun Nov 20, 2011 7:06 am

You need to have all of the arrays defined and the headshot sprites need to exist, otherwise it will get an error.
User avatar
boywhoflies
Rainbow Spirit Chaser
Posts: 5510
Joined: Thu Jun 26, 2008 3:16 pm

Post by boywhoflies » Sun Nov 20, 2011 2:12 pm

MyNameIsKooky wrote:It's supposed to be 32x32.
If this means anything, I'm using 34x34 or something like that for Circuit and it looks fine.
I knew it was intended to be 32x32 when I did that, though.
Mr. Robot never dies! :D

Chatroom
User avatar
MyNameIsKooky
Rainbow Spirit Master
Posts: 9712
Joined: Mon Dec 01, 2008 10:18 pm

Post by MyNameIsKooky » Sun Nov 20, 2011 8:36 pm

boywhoflies wrote:
MyNameIsKooky wrote:It's supposed to be 32x32.
If this means anything, I'm using 34x34 or something like that for Circuit and it looks fine.
Unless you look closely and realize that it's 2 pixels too big. :(
User avatar
Nobody
Rainbow Spirit Chaser
Posts: 5545
Joined: Thu Aug 21, 2008 5:52 pm

Post by Nobody » Sun Nov 20, 2011 8:46 pm

Now none of the variables can be found. I added an even that makes them, but the text and box aren't getting displayed.
i should change my signature to be rude to people who hate pictures of valves
Post Reply