Jump to content


Codebox

Member Since 03 Apr 2011
Offline Last Active Sep 23 2011 06:34 PM

Topics I've Started

Jump To Position

19 June 2011 - 02:52 PM

Hi there!

I am making a platform game, but I don't know how to do following:
When you collide with an object, I want it to jump to the up-left corner of the room. But I use views, so it's a little problem for me.

Here's what I have so far:
Event: obj_player, action: execute piece of code:
x=view_xview+10;
y=view_yview+10;

Thank you in advance, and I'll give you a credit. Btw, I use GM 8.0 PRO, if it helps. :)

Delete

28 May 2011 - 03:21 PM

Sorry, double topic.
Please delete.

GML jumping

28 May 2011 - 03:04 PM

I'm still learning GML and I have a little problem here:

1. I have 3 wall (solid) blocks and I want player to jump.
This is my code, but it doesn't work. Could someone help me out?

Event: press Up, action: Execute a piece of code
if place_meeting (0,1,obj_ground3) or place_meeting(0,1,obj_ground2)or place_meeting(0,1,obj_ground1) then vspeed=-7


2. I want player to change sprite to spr_char_jumpl when jumping left and to spr_char_jumpr when jumping right. How can I do that?

Btw, I use GM 8.0 pro, if that helps.
Thanks in advance, Codebox.

Name - my - game

03 April 2011 - 04:58 PM

So I'm making a platformer/puzzle game that has "pixel" and "retro" graphics. There is no story set right now, but it has a goal and that is to solve all the puzzles in a room, with getting the highest score by killing the enemies. If you got some ideas for title, please post them. I'll give you a credit. Thank you.  :lol:
If you need more informations about game, feel free to ask.   :snitch:


Here is a screenshot (Sorry for bad quality, I'll fix that soon) that shows a part of a simple level:
Posted Image

More screenshots to come soon!