Jump to content


Photo

Works in 8.1 but not in Studio *[SOLVED]*


  • Please log in to reply
7 replies to this topic

#1 nickydude

nickydude

    MadLad Designs

  • GMC Member
  • 618 posts
  • Version:GM:Studio

Posted 15 April 2012 - 11:12 PM

* SOLVED *


I have 3 objects; obj_controller, obj_block_move_left and obj_block_move_right.

In the Create event of obj_controller I have the following Execute code:

// Speed of moving blocks
global.moveblock = random_range(1,2);

In the Create events of the other two objects I have the Move Fixed drag-and-drop icon, with "Speed: global.moveblock"

It runs fine in 8.1 (in which it was originally written in), but in Studio I get the following error:

#################################################################
VMError!! Occurred - Push :: Execution Error - Variable Get moveblock
at Object.obj_block_move_left.Create.0 (line -1) - <unknown source line>
#################################################################

Anyone know what's happening?

Edited by nickydude, 16 April 2012 - 12:01 PM.

  • 0

My Specs: Windows 7, 2047MB NVIDIA GeForce GTX 660,  Intel Core i5 3330 @ 3.00GHz, 8GB Ram.


#2 wargasm

wargasm

    GMC Member

  • GMC Member
  • 189 posts

Posted 16 April 2012 - 01:40 AM

Same problem here....no replies yet.

http://gmc.yoyogames...howtopic=537017
  • 0

#3 fredcobain

fredcobain

    GMC Member

  • GMC Member
  • 165 posts

Posted 16 April 2012 - 02:22 AM

Please, report this issue at http://bugs.yoyogames.com

If you wont report the but, it cannot be noticed, and not fixed.
  • 0
I am an Posted Image in the GM Quiz!

#4 azcodon

azcodon

    GMC Member

  • Banned Users
  • 237 posts
  • Version:Unknown

Posted 16 April 2012 - 02:45 AM

save your project,and run again

#5 nickydude

nickydude

    MadLad Designs

  • GMC Member
  • 618 posts
  • Version:GM:Studio

Posted 16 April 2012 - 10:59 AM

save your project,and run again


I did, many times. I've now solved it though, I deleted the controller object from the room then put it back again and it now works(?)
  • 0

My Specs: Windows 7, 2047MB NVIDIA GeForce GTX 660,  Intel Core i5 3330 @ 3.00GHz, 8GB Ram.


#6 wagdog

wagdog

    GMC Member

  • GMC Member
  • 281 posts
  • Version:GM:Studio

Posted 16 April 2012 - 11:05 AM

Sounds like the create event of the block object(s) was getting fired before the controller object was created. I'm guessing the order you placethings in the room matters (actually, pretty sure that is the case).
  • 0

Three Liter Games

Kitty Flyer (FREE!) - Flappy Bird like game:

iOS: iTunes App Store

Android: Google Play!

Lunar Commander:

iOS: iTunes App Store

Android: Google Play

Linux: Lunar Commander Linux - (free - direct download)

HTML5: http://www.johnnywag.com/lchtml5/ (play free in your browser!)

Lunar Commander Lite (FREE!):

iOS: iTunes App Store

Android: Google Play

 


#7 nickydude

nickydude

    MadLad Designs

  • GMC Member
  • 618 posts
  • Version:GM:Studio

Posted 16 April 2012 - 11:47 AM

Odd, of all the stuff I've made in 6 / 7 / 8 & 8.1 I've never had that happen, thanks for the heads up. :)
  • 0

My Specs: Windows 7, 2047MB NVIDIA GeForce GTX 660,  Intel Core i5 3330 @ 3.00GHz, 8GB Ram.


#8 dasrkrain

dasrkrain

    GMC Member

  • GMC Member
  • 202 posts
  • Version:GM:Studio

Posted 16 April 2012 - 07:06 PM

Ya wagdog is right. I ran into this exact same thing on Saturday! We just need to get used to how GMS works and it'll be fine! Kind of tough for us who've been using GM waaay back at 6!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users