Jump to content


_Dumble_

Member Since 31 Aug 2011
Offline Last Active Sep 29 2011 11:50 AM

Topics I've Started

Gravity/Jump Problem

25 September 2011 - 12:47 PM

I'm not using code yet i use blocks.(If anyone could supply a link to a coding tutorial that would be appreciated.)

But i have a problem with making my character jump.

I have this so farunder create event i have: Set variable alreadyjumping to false. Then under up arrow event i have:

:GM063:
         :GM063:
         :GM073: If alreadyjumping is equal to false
                     :GM063:
                       :GM072: Set variable alreadyjumping to true (i don't know why this is here all i know is that if i remove it i can't jump at all)
                       :GM066:
         :GM054: if position (0,1) is collision free for Only solid objects (It seems like this should be Not collistion free (you gotta read farther down to think this) but if i switch it with the other one which i will identify when we get to it but i can't jump if i switch them)
         :GM006: set the vertical speed to 0
         :GM066:
:GM064:
:GM006: set the vertical speed to -5
:GM072: Set variable alreadyjumping to true
:GM054: if position (0,1) is not collision free for only solid objects(This is the one)
:GM072: set variable alreadyjumping to false
:GM066:

Also when i go to another room i have under outside room:
Go to next room
jump to position (32,416)

i randomly appear in different places any ideas? (my character is persistant)

Gravity/Jump Problem

25 September 2011 - 12:17 PM

I'm not using code yet i use blocks.(If anyone could supply a link to a coding tutorial that would be appreciated.)

But i have a problem with making my character jump.

I have this so far:

:GM063:
:GM063:

Can someone delete this? this was a mistake!!!!!!

Help please!

01 September 2011 - 12:14 PM

So i am trying to make a platform game, and i am having some difficulty getting it right. I'm new and don't know how to code so i'm using the drag & drop icons 4 now.(i learned the basic basics in camp. It was only five

days in the afternoon but i know what i'm doing to an extent. Just to let you know) So when the player hits a fireball i want him to lose 50 health, if he doesn't have 50 health to lose a life and if he has no lifes left he loses. so far i have this: Event:Collision with object Player

                       Actions: Start of a block
                                                         Start of a block
                                                                               Start of a Block
                                                                               Set health relative to 50
                                                                               If Health is smaller than 1
                                                                               End of a Block

                                                        Set Lives to 2
                                                        If lives are smaller than 1
                                                        End of a Block
                                   Destroy the instance(other)
                                   Destroy the instance(self)
                                   Show the high-score table
                                   End of a block

The Problem i have is, it sets my lives to 2 (out of original 3) health to 150(out of 100) and destroys me! Can you point out anything is should try? Also, just because i don't know how to code know doesn't mean if one of you guys would be so kind as to write a piece of code for it i could probably be able to put it in. (Just a suggestion of

So under my players create event i have a play music action(U2,Walk on, Live from Slane Castle) It plays fine, but every time i go from Room A to Room B It restarts. Any ideas on how i could fix this?

1 last thing.
The way my players gravity is set that i can do jumps in the air! Not just double jumps but triple, and quadruple jumps to. Anyway i could fix this? these are my Action and Events 4 gravity
Action:Step
Events:
If a position is collision free(x:0 y:1, only solid, Relative)
Start of a block
Set Gravity(applies to self, direction 270, gravity: 0.2)
End of a block
Else
Start of a block
Set Gravity(Applies to self, direction 270, Gravity:0)
End of a block
Any help would be greatly appreciated!